net.ontopia.persistence.proxy
Class ObjectStates

java.lang.Object
  extended by net.ontopia.persistence.proxy.ObjectStates

public class ObjectStates
extends java.lang.Object

INTERNAL: A data structure that keeps track of the objects that has been touched within the transaction boundaries. The state of the objects are also maintained.


Field Summary
protected  boolean clean
           
protected  gnu.trove.TObjectIntHashMap map
           
static int STATE_CREATED
           
static int STATE_DELETED
           
static int STATE_DIRTY
           
static int STATE_READ
           
 
Method Summary
 void clear()
           
 void created(IdentityIF identity)
           
 void deleted(IdentityIF identity)
           
 void dirty(IdentityIF identity)
           
 void forEachEntry(gnu.trove.TObjectIntProcedure proc)
           
 int getState(IdentityIF identity)
           
 boolean isClean()
           
 boolean isClean(IdentityIF identity)
           
 boolean isCreated(IdentityIF identity)
           
 void read(IdentityIF identity)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_CREATED

public static final int STATE_CREATED
See Also:
Constant Field Values

STATE_DELETED

public static final int STATE_DELETED
See Also:
Constant Field Values

STATE_DIRTY

public static final int STATE_DIRTY
See Also:
Constant Field Values

STATE_READ

public static final int STATE_READ
See Also:
Constant Field Values

map

protected gnu.trove.TObjectIntHashMap map

clean

protected boolean clean
Method Detail

isClean

public boolean isClean()

size

public int size()

isClean

public boolean isClean(IdentityIF identity)

isCreated

public boolean isCreated(IdentityIF identity)

created

public void created(IdentityIF identity)

deleted

public void deleted(IdentityIF identity)

dirty

public void dirty(IdentityIF identity)

read

public void read(IdentityIF identity)

getState

public int getState(IdentityIF identity)

clear

public void clear()

forEachEntry

public void forEachEntry(gnu.trove.TObjectIntProcedure proc)


Copyright © 2000-2012 Ontopia.