Package net.ontopia.persistence.proxy
Class ObjectStates
java.lang.Object
net.ontopia.persistence.proxy.ObjectStates
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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected gnu.trove.map.hash.TObjectIntHashMap<IdentityIF>static final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()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 Details
-
STATE_CREATED
public static final int STATE_CREATED- See Also:
-
STATE_DELETED
public static final int STATE_DELETED- See Also:
-
STATE_DIRTY
public static final int STATE_DIRTY- See Also:
-
STATE_READ
public static final int STATE_READ- See Also:
-
map
-
clean
protected boolean clean
-
-
Method Details
-
isClean
public boolean isClean() -
size
public int size() -
isClean
-
isCreated
-
created
-
deleted
-
dirty
-
read
-
getState
-
clear
public void clear() -
forEachEntry
-