public class ObjectEnvelopeTable
extends java.lang.Object
Constructor and Description |
---|
ObjectEnvelopeTable(TransactionImpl myTransaction)
Creates new ObjectEnvelopeTable
|
Modifier and Type | Method and Description |
---|---|
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 ) |
public ObjectEnvelopeTable(TransactionImpl myTransaction)
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)
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30