|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tranql.field.Row
org.tranql.cache.CacheRow
public final class CacheRow
The representation of a data set in the cache.
Field Summary | |
---|---|
static java.lang.Object |
NO_DATA
A place holder indicating that the specified slot in the cache line has not been loaded. |
static java.lang.Object |
SET_VALUE
A place holder indicating that the specified slot in the cache line should contain a Set to hold references to other rows. |
Fields inherited from class org.tranql.field.Row |
---|
values |
Constructor Summary | |
---|---|
CacheRow(java.lang.Object[] defaults)
Constructor used during creation of an instance. |
Method Summary | |
---|---|
GlobalIdentity |
getId()
Return the identity of this row. |
CacheRowState |
getState()
Return the state if this row. |
boolean |
isLoaded(int slot)
|
boolean |
isModified(int slot)
Test if a slot has been modified. |
boolean |
isSlotUnderConstruction(int slot)
|
void |
markClean()
Indicate that the state has been synchronized. |
void |
markDirty(int slot)
|
void |
markRemoved()
|
void |
markSlotUnderConstruction(int slot)
|
void |
mergeWithRemoved(CacheRow deletedRow)
|
void |
unmarkSlotUnderConstruction(int slot)
|
Methods inherited from class org.tranql.field.Row |
---|
get, getValues, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object NO_DATA
public static final java.lang.Object SET_VALUE
Constructor Detail |
---|
public CacheRow(java.lang.Object[] defaults)
defaults
- default values used to initialize each slotMethod Detail |
---|
public void mergeWithRemoved(CacheRow deletedRow)
public CacheRowState getState()
public boolean isModified(int slot)
slot
- the slot to check
public boolean isLoaded(int slot)
public void markClean()
public void markDirty(int slot)
public void markRemoved()
public void markSlotUnderConstruction(int slot)
public void unmarkSlotUnderConstruction(int slot)
public boolean isSlotUnderConstruction(int slot)
public GlobalIdentity getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |