ojb.odmg
Class ObjectEnvelopeTable

java.lang.Object
  |
  +--ojb.odmg.ObjectEnvelopeTable

public class ObjectEnvelopeTable
extends java.lang.Object

manages all ObjectEnvelopes included by a transaction. Performs commit, and rollack operations on all included Envelopes.

Author:
Thomas Mahler

Constructor Summary
ObjectEnvelopeTable(TransactionImpl myTransaction)
          Creates new ObjectEnvelopeTable
 
Method Summary
 void commit()
          perform commit on all tx-states
 boolean contains(java.lang.Object pKey)
          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(java.lang.Object pKey)
          retrieve an objects ObjectModification state from the hashtable
 void put(java.lang.Object pKey, ObjectEnvelope modification)
          store an objects transactional state into the Hashtable
 void remove(java.lang.Object pKey)
          remove an objects entry from the Hashtable
 void rollback()
          perform rollback on all tx-states
 java.lang.String toString()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectEnvelopeTable

public ObjectEnvelopeTable(TransactionImpl myTransaction)
Creates new ObjectEnvelopeTable

Method Detail

commit

public void commit()
            throws TransactionAbortedException
perform commit on all tx-states

TransactionAbortedException

rollback

public void rollback()
perform rollback on all tx-states


remove

public void remove(java.lang.Object pKey)
remove an objects entry from the Hashtable


elements

public java.util.Enumeration elements()
Get an enumeration of all the elements in this ObjectEnvelopeTable in random order. Creation date: (11.02.2001 12:45:08)

Returns:
Enumeration an enumeration of all elements managed by this ObjectEnvelopeTable

get

public ObjectEnvelope get(java.lang.Object pKey)
retrieve an objects ObjectModification state from the hashtable


put

public void put(java.lang.Object pKey,
                ObjectEnvelope modification)
store an objects transactional state into the Hashtable


toString

public java.lang.String toString()
Insert the method's description here. Creation date: (11.02.2001 12:45:08)

Overrides:
toString in class java.lang.Object
Returns:
java.lang.String

contains

public boolean contains(java.lang.Object pKey)
retrieve an objects ObjectModification state from the hashtable



Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04