|
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 | ||||||||
Holds data about a single persistence capable instance.
| 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. |
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. |
| Method Detail |
public Object getOid()
public Class getType()
Class object, so client code that
may use different class loaders should take care with this
variable.public Object getData(int index)
index. null could mean that the
field is unset or that the field is set to null,
so you should use getLoaded(int) to check the loaded
status of the field.
public void setData(int index,
Object val)
index
to val.public Object getIntermediate(int index)
index, or null if none.
public void setIntermediate(int index,
Object val)
index to
val.public boolean getLoaded(int index)
true if the field at index
is loaded; else returns false.
public void setLoaded(int index,
boolean loaded)
loaded flag for the field at
index.public Object getVersion()
public void setVersion(Object version)
public boolean checkVersion(StateManagerImpl sm)
public void load(StateManagerImpl sm)
sm - the state manager to load
public BitSet load(StateManagerImpl sm,
Object conn,
BitSet fields,
boolean setVersion)
sm - 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)
sm
into the cache.sm - the state manager to store
public void store(StateManagerImpl sm,
BitSet fields)
fields.sm - 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 | ||||||||