org.tranql.cache
Class CacheRow

java.lang.Object
  extended byorg.tranql.field.Row
      extended byorg.tranql.cache.CacheRow

public final class CacheRow
extends Row

The representation of a data set in the cache.

Version:
$Revision: 1.3 $ $Date: 2004/03/21 01:25:31 $

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.
 void markClean()
          Indicate that the state has been synchronized.
 void markDirty(int slot)
           
 void markRemoved()
           
 
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

NO_DATA

public static final java.lang.Object NO_DATA
A place holder indicating that the specified slot in the cache line has not been loaded. Used to differentiate between NULL and missing values.


SET_VALUE

public static final 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.

Constructor Detail

CacheRow

public CacheRow(java.lang.Object[] defaults)
Constructor used during creation of an instance.

Parameters:
defaults - default values used to initialize each slot
Method Detail

getState

public CacheRowState getState()
Return the state if this row.

Returns:
the state of this row

isModified

public boolean isModified(int slot)
Test if a slot has been modified.

Parameters:
slot - the slot to check
Returns:
true if the slot has been modified

isLoaded

public boolean isLoaded(int slot)

markClean

public void markClean()
Indicate that the state has been synchronized.


markDirty

public void markDirty(int slot)

markRemoved

public void markRemoved()

getId

public GlobalIdentity getId()
Return the identity of this row.

Returns:
the global identity of this row


Copyright © -2005 The Codehaus. All Rights Reserved.