Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ojb.server
Class ObjectStateTable  view ObjectStateTable download ObjectStateTable.java

java.lang.Object
  extended byojb.server.ObjectStateTable

public class ObjectStateTable
extends java.lang.Object


Field Summary
private static boolean _debug
          debug flag
private  java.util.Hashtable table
          the internal table mapping Objects to their ObjectModification
 
Constructor Summary
ObjectStateTable()
          Creates new ObjectStateTable
 
Method Summary
 void checkpoint()
          perfom checkpoint for all tx-state in the table
 void commit()
          perform commit on all tx-states
 ojb.server.states.ObjectModification get(java.lang.Object key)
          retrieve an objects ObjectModification state from the hashtable
 void put(java.lang.Object key, ojb.server.states.ObjectModification modification)
          store an objects transactionalstate into the Hashtable
 void remove(java.lang.Object key)
          remove an objects entry from the Hashtable
 void rollback()
          perform commit on all tx-states
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_debug

private static boolean _debug
debug flag


table

private java.util.Hashtable table
the internal table mapping Objects to their ObjectModification

Constructor Detail

ObjectStateTable

public ObjectStateTable()
Creates new ObjectStateTable

Method Detail

checkpoint

public void checkpoint()
perfom checkpoint for all tx-state in the table


commit

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


rollback

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


remove

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


get

public ojb.server.states.ObjectModification get(java.lang.Object key)
retrieve an objects ObjectModification state from the hashtable


put

public void put(java.lang.Object key,
                ojb.server.states.ObjectModification modification)
store an objects transactionalstate into the Hashtable