Table of Contents

Class: IWritableDM ./src/peak/storage/interfaces.py

Data manager that possibly supports adding/modifying objects

Base Classes   
IKeyableDM
Methods   
add
flush
newItem
remove
  add 
add ( ob )

Add ob to the database

Note that the object's oid must be unique or None, and that the object must be un-owned, or already owned by this DM. If the oid is a duplicate, raise InvalidKeyError. If the object is already owned by this DM, this method is a no-op.

  flush 
flush ( ob=None )

Sync stored state to in-memory state of ob or all objects

  newItem 
newItem ( klass=None )

DEPRECATED: Create+return a new persistent object of class klass

This method is deprecated; please use add() instead.

  remove 
remove ( ob )

Remove ob from the database

The object must belong to this DM; after this method is called it will no longer belong to the DM. (The actual removal from the database is deferred until transaction commit.)


Table of Contents

This document was automatically generated on Mon Apr 15 01:11:04 2024 by HappyDoc version 2.1