|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.runtime.datacache.TimedPCData
A PCData implementation that can record when it is due to expire.
| Constructor Summary | |
TimedPCData(PCData data,
long exp)
|
|
| Method Summary | |
boolean |
checkVersion(StateManagerImpl sm)
Returns true if the version of the given state manager matches the cached version. |
Object |
getData(int index)
Returns the stored data value for the field at index. |
long |
getExpirationTime()
Returns the expiration time for this data. |
Object |
getIntermediate(int index)
Returns the stored intermediate field value for the field at index, or null if none. |
boolean |
getLoaded(int index)
Returns true if the field at index
is loaded; else returns false. |
Object |
getOid()
Returns the object ID of the data represented by this object. |
Class |
getType()
Returns the type of the object represented by this data structure. |
Object |
getVersion()
Returns the current version object that this data was loaded from. |
void |
load(StateManagerImpl sm)
Loads all fields that are currently stored in the cache into the given state manager. |
BitSet |
load(StateManagerImpl sm,
Object conn,
BitSet fields,
boolean setVersion)
Loads some or all of the marked fields from the cache into the given state manager. |
void |
setData(int index,
Object val)
Sets the stored data value for the field at index
to val. |
void |
setIntermediate(int index,
Object val)
Sets the stored intermediate field value at index to
val. |
void |
setLoaded(int index,
boolean loaded)
Sets the loaded flag for the field at
index. |
void |
setVersion(Object version)
Sets the current version object that this data was loaded from. |
void |
store(StateManagerImpl sm)
Stores all fields that are currently loaded in sm
into the cache. |
void |
store(StateManagerImpl sm,
BitSet fields)
Stores all of the fields identified in fields. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TimedPCData(PCData data,
long exp)
| Method Detail |
public long getExpirationTime()
public Object getOid()
PCDatagetOid in interface PCDatapublic Class getType()
PCDataClass object, so client code that
may use different class loaders should take care with this
variable.getType in interface PCDatapublic Object getData(int index)
PCDataindex. null could mean that the
field is unset or that the field is set to null,
so you should use PCData.getLoaded(int) to check the loaded
status of the field.getData in interface PCData
public void setData(int index,
Object val)
PCDataindex
to val.setData in interface PCDatapublic Object getIntermediate(int index)
PCDataindex, or null if none.getIntermediate in interface PCData
public void setIntermediate(int index,
Object val)
PCDataindex to
val.setIntermediate in interface PCDatapublic boolean getLoaded(int index)
PCDatatrue if the field at index
is loaded; else returns false.getLoaded in interface PCData
public void setLoaded(int index,
boolean loaded)
PCDataloaded flag for the field at
index.setLoaded in interface PCDatapublic Object getVersion()
PCDatagetVersion in interface PCDatapublic void setVersion(Object version)
PCDatasetVersion in interface PCDatapublic boolean checkVersion(StateManagerImpl sm)
PCDatacheckVersion in interface PCDatapublic void load(StateManagerImpl sm)
PCDataload in interface PCDatacom.solarmetric.kodo.runtime.PCDatasm - the state manager to load
public BitSet load(StateManagerImpl sm,
Object conn,
BitSet fields,
boolean setVersion)
PCDataload in interface PCDatacom.solarmetric.kodo.runtime.PCDatasm - the state manager to loadconn - the connection information passed to the
store managerfields - the fields to load; all field bits that are
successfully loaded from the cache will be
clearedsetVersion - if the version information should be loadedpublic void store(StateManagerImpl sm)
PCDatasm
into the cache.store in interface PCDatacom.solarmetric.kodo.runtime.PCDatasm - the state manager to store
public void store(StateManagerImpl sm,
BitSet fields)
PCDatafields.store in interface PCDatacom.solarmetric.kodo.runtime.PCDatasm - the state manager to store.fields - the fields in sm to store.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||