| org.apache.ojb.otm.EditingContext
All known Subclasses: org.apache.ojb.otm.core.ConcreteEditingContext,
EditingContext | public interface EditingContext (Code) | | The EditingContext contains and manages the set of object read/edited within the context of a
transaction. Logically, this could be considered similar to a document that is being edited.
During commit, all objects within this transaction that are marked as being written to (ones
with a write lock) are written back to the persistent store.
author: Raghu Rajah |
insert | public void insert(Identity oid, Object userObject, int lock) throws LockingException(Code) | | Insert the given object into the EditingContext, acquiring the specified lock.
Parameters: oid - the identity of the object to be inserted Parameters: userObject - the object to insert, for user operations Parameters: lock - the lock to be acquired. throws: LockingException - thrown by the Lock Manager to avoid deadlocks. The insertioncould be re-attempted if the lock fails. |
lookupState | State lookupState(Identity oid) throws LockingException(Code) | | lookup the state of an object, given the oid, in the context
Parameters: oid - the state of that object in the context, null if the object is not in the context throws: LockingException - |
refresh | public void refresh(Identity oid, Object object)(Code) | | Rollback all changes made during this transaction to the given object.
|
remove | public void remove(Identity oid)(Code) | | Remove a managed object from the management of this EditingContext. All edits on the object
will be lost. All locks kept by this object will be released.
Parameters: oid - the Identity of the object to be removed from this context. |
|
|