| org.apache.openjpa.kernel.PCData
All known Subclasses: org.apache.openjpa.kernel.AbstractPCData,
PCData | public interface PCData extends Serializable(Code) | | Holds data about a single persistence capable instance. This interface is
used in the caching framework, and may also be used by simple store manager
back-ends to hold persistent state.
author: Patrick Linskey |
getData | public Object getData(int i)(Code) | | Return the data stored in the given field index.
|
getId | public Object getId()(Code) | | Return the id of this instance.
|
getImplData | public Object getImplData()(Code) | | Returns the instance-level impl data, or null if none.
|
getType | public Class getType()(Code) | | Return the type of this instance.
|
getVersion | public Object getVersion()(Code) | | Returns the current version object that this data was loaded from.
|
isLoaded | public boolean isLoaded(int i)(Code) | | Whether the given field index has stored data.
|
load | public void load(OpenJPAStateManager sm, FetchConfiguration fetch, Object context)(Code) | | Loads all fields that are currently stored in the cache
into the given state manager.
Parameters: sm - the state manager to load Parameters: fetch - the fetch configuration to use for loading related objects Parameters: context - current context information |
load | public void load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, Object context)(Code) | | Loads some or all of the marked fields from the cache into the
given state manager.
Parameters: sm - the state manager to load Parameters: fields - the fields to load; clear the bits for the fieldsthat are successfully loaded Parameters: fetch - the fetch configuration to use for loading related objects Parameters: context - current context information |
setImplData | public void setImplData(Object val)(Code) | | Sets the stored instance-level impl data.
|
setVersion | public void setVersion(Object version)(Code) | | Sets the current version object that this data was loaded from.
|
|
|