|
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.PCDataImpl
Holds data about a single persistence capable instance.
| Constructor Summary | |
PCDataImpl(Object oid,
ClassMetaData meta)
Constructor. |
|
PCDataImpl(StateManagerImpl sm)
Constructor. |
|
| 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. |
protected Object |
lookup(PersistenceManagerImpl pm,
Object oid)
Find the PC corresponding to oid in the cache,
using pm. |
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 PCDataImpl(StateManagerImpl sm)
public PCDataImpl(Object oid,
ClassMetaData meta)
| Method Detail |
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)
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.getData in interface PCData
public void setData(int index,
Object val)
index
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)
true if the field at index
is loaded; else returns false.getLoaded in interface PCData
public void setLoaded(int index,
boolean loaded)
loaded flag for the field at
index.setLoaded in interface PCDatapublic Object getVersion()
getVersion in interface PCDatapublic void setVersion(Object version)
setVersion in interface PCDatapublic boolean checkVersion(StateManagerImpl sm)
checkVersion in interface PCDatapublic void load(StateManagerImpl sm)
load in interface PCDatasm - the state manager to load
public BitSet load(StateManagerImpl sm,
Object conn,
BitSet fields,
boolean setVersion)
load in interface 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)
sm
into the cache.store in interface 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.
protected Object lookup(PersistenceManagerImpl pm,
Object oid)
oid in the cache,
using pm.
|
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 | ||||||||