|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.odmg.ObjectEnvelopeTable
public class ObjectEnvelopeTable
manages all ObjectEnvelopes included by a transaction. Performs commit, and rollack operations on all included Envelopes.
Constructor Summary | |
---|---|
ObjectEnvelopeTable(TransactionImpl myTransaction)
Creates new ObjectEnvelopeTable |
Method Summary | |
---|---|
boolean |
contains(Identity oid)
retrieve an objects ObjectModification state from the hashtable |
java.util.Enumeration |
elements()
Get an enumeration of all the elements in this ObjectEnvelopeTable in random order. |
ObjectEnvelope |
get(Identity oid,
java.lang.Object pKey,
boolean isNew)
retrieve an objects ObjectEnvelope state from the hashtable. |
ObjectEnvelope |
get(java.lang.Object pKey,
boolean isNew)
retrieve an objects ObjectEnvelope state from the hashtable. |
ObjectEnvelope |
getByIdentity(Identity id)
retrieve an objects ObjectModification state from the hashtable |
void |
refresh()
prepare this instance for reuse |
void |
remove(java.lang.Object pKey)
remove an objects entry from the object registry |
void |
rollback()
perform rollback on all tx-states |
java.lang.String |
toString()
Returns a String representation of this object |
void |
writeObjects(boolean reuse)
Perform write to DB on all registered object wrapper ( ObjectEnvelope ) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectEnvelopeTable(TransactionImpl myTransaction)
Method Detail |
---|
public void refresh()
public void writeObjects(boolean reuse) throws TransactionAbortedException, LockNotGrantedException
ObjectEnvelope
)
reuse
- When all registered objects be re-used after writing to
DB set true, else set false to improve performance.
TransactionAbortedException
LockNotGrantedException
public void rollback()
public void remove(java.lang.Object pKey)
public java.util.Enumeration elements()
public ObjectEnvelope getByIdentity(Identity id)
public ObjectEnvelope get(java.lang.Object pKey, boolean isNew)
public ObjectEnvelope get(Identity oid, java.lang.Object pKey, boolean isNew)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(Identity oid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |