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 boolean
clean
protected gnu.trove.map.hash.TObjectIntHashMap<IdentityIF>
map
static int
STATE_CREATED
static int
STATE_DELETED
static int
STATE_DIRTY
static int
STATE_READ
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
created(IdentityIF identity)
void
deleted(IdentityIF identity)
void
dirty(IdentityIF identity)
void
forEachEntry(gnu.trove.procedure.TObjectIntProcedure<IdentityIF> proc)
int
getState(IdentityIF identity)
boolean
isClean()
boolean
isClean(IdentityIF identity)
boolean
isCreated(IdentityIF identity)
void
read(IdentityIF identity)
int
size()
-
-
-
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)
-
-