Package org.apache.openjpa.xmlstore
Class ObjectData
java.lang.Object
org.apache.openjpa.xmlstore.ObjectData
- All Implemented Interfaces:
Cloneable
In-memory form of data in datastore backing a single persistent object.
-
Constructor Summary
ConstructorDescriptionObjectData
(Object oid, ClassMetaData meta) Create the object without underlying data. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone this data.getField
(int num) Get the data for the field with the given index.getId()
Getter for oid.Get the metadata associated with the type of persistent object for which this data applies.Get the version number of the object.void
load
(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch) Load the data and version information for this object into the given state manager.void
load
(OpenJPAStateManager sm, FetchConfiguration fetch) Load the data and version information for this object into the given state manager.void
Set the data for the field with the given index.void
setVersion
(Long version) Set the version number of the object.void
Store the data and version information for this object from the given state manager.toString()
-
Constructor Details
-
ObjectData
Create the object without underlying data. Just pass in type specific metadata and the oid.
-
-
Method Details
-
getId
Getter for oid. -
getField
Get the data for the field with the given index. -
setField
Set the data for the field with the given index. -
setVersion
Set the version number of the object. -
getVersion
Get the version number of the object. -
getMetaData
Get the metadata associated with the type of persistent object for which this data applies. -
load
Load the data and version information for this object into the given state manager. Only fields in the given fetch configuration are loaded. -
load
Load the data and version information for this object into the given state manager. Only fields in the given bit set will be loaded. -
store
Store the data and version information for this object from the given state manager. Only dirty fields will be stored. -
clone
Clone this data. -
toString
-