|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EditingContext
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 | |
|---|---|
Collection |
getAllObjectsInContext()
|
void |
insert(Identity oid,
Object userObject,
int lock)
Insert the given object into the EditingContext, acquiring the specified lock. |
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 |
refresh(Identity oid,
Object object)
Rollback all changes made during this transaction to the given object. |
void |
remove(Identity oid)
Remove a managed object from the management of this EditingContext. |
void |
setState(Identity oid,
State state)
|
| Method Detail |
|---|
void insert(Identity oid,
Object userObject,
int lock)
throws LockingException
oid - the identity of the object to be inserteduserObject - the object to insert, for user operationslock - the lock to be acquired.
LockingException - thrown by the Lock Manager to avoid deadlocks. The insertion
could be re-attempted if the lock fails.void remove(Identity oid)
oid - the Identity of the object to be removed from this context.
Object lookup(Identity oid)
throws LockingException
oid - the oid of the object to lookup
LockingException
State lookupState(Identity oid)
throws LockingException
oid -
LockingException
void setState(Identity oid,
State state)
Collection getAllObjectsInContext()
void refresh(Identity oid,
Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||