|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Method Summary | |
java.util.Collection |
getAllObjectsInContext()
|
void |
insert(Identity oid,
java.lang.Object object,
int lock)
Insert the given object into the EditingContext, acquiring the specified lock. |
java.lang.Object |
lookup(Identity oid)
Lookup object with the given oid in the Context. |
State |
lookupState(Identity oid)
lookup the state of an object, given the oid, in the context |
void |
remove(Identity oid)
Remove a managed object from the management of this EditingContext. |
void |
setState(Identity oid,
State state)
|
| Method Detail |
public void insert(Identity oid,
java.lang.Object object,
int lock)
throws LockingException
oid - the identity of the object to be insertedobject - the object to insertlock - the lock to be acquired.
LockingException - thrown by the Lock Manager to avoid deadlocks. The insertion
could be re-attempted if the lock fails.public void remove(Identity oid)
oid - the Identity of the object to be removed from this context.
public java.lang.Object lookup(Identity oid)
throws LockingException
oid - the oid of the object to lookup
LockingException
public State lookupState(Identity oid)
throws LockingException
oid -
LockingException
public void setState(Identity oid,
State state)
public java.util.Collection getAllObjectsInContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||