Package net.ontopia.persistence.proxy
Class ObjectStates
- java.lang.Object
-
- net.ontopia.persistence.proxy.ObjectStates
-
public class ObjectStates extends 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
Fields Modifier and Type Field Description protected booleancleanprotected gnu.trove.map.hash.TObjectIntHashMap<IdentityIF>mapstatic intSTATE_CREATEDstatic intSTATE_DELETEDstatic intSTATE_DIRTYstatic intSTATE_READ
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcreated(IdentityIF identity)voiddeleted(IdentityIF identity)voiddirty(IdentityIF identity)voidforEachEntry(gnu.trove.procedure.TObjectIntProcedure<IdentityIF> proc)intgetState(IdentityIF identity)booleanisClean()booleanisClean(IdentityIF identity)booleanisCreated(IdentityIF identity)voidread(IdentityIF identity)intsize()
-
-
-
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.map.hash.TObjectIntHashMap<IdentityIF> 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.procedure.TObjectIntProcedure<IdentityIF> proc)
-
-