|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.runtime.PCData
Holds data about a single persistence capable instance. This class is used in the caching framework, and may also be used by simple store manager back-ends to hold persistent state.
| Field Summary | |
java.lang.Object |
oid
|
java.lang.Class |
type
|
| Constructor Summary | |
PCData(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Constructor. |
|
| Method Summary | |
java.lang.Object |
getData(int index)
Returns the stored data value for the field at index. |
boolean |
getLoaded(int index)
Returns true if the field at index
is loaded; else returns false. |
java.lang.Object |
getVersion()
Returns the current version object that this data was loaded from. |
boolean |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object conn)
Loads some or all of the marked fields from the cache into the given state manager. |
void |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object conn)
Loads all fields that are currently stored in the cache into the given state manager. |
protected java.lang.Object |
lookup(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.lang.Object conn,
java.lang.Object oid)
Find the PC corresponding to oid in the cache,
using pm. |
void |
setData(int index,
java.lang.Object val)
Sets the stored data value for the field at index
to val. |
void |
setLoaded(int index,
boolean loaded)
Sets the loaded flag for the field at
index. |
void |
setVersion(java.lang.Object version)
Sets the current version object that this data was loaded from. |
void |
store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Store all loaded fields of the state manager. |
void |
store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.util.BitSet fields)
Store the given fields from the state manager. |
void |
store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field)
Store the given field from the state manager into the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final java.lang.Object oid
public final java.lang.Class type
| Constructor Detail |
public PCData(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
| Method Detail |
public java.lang.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,
java.lang.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 java.lang.Object getVersion()
public void setVersion(java.lang.Object version)
public void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object conn)
sm - the state manager to loadconn - current connection information
public boolean load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object conn)
sm - the state manager to loadfield - the field to loadconn - current connection information
public void store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
public void store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.util.BitSet fields)
public void store(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field)
protected java.lang.Object lookup(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.lang.Object conn,
java.lang.Object oid)
oid in the cache,
using pm.
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||