Package org.apache.openjpa.xmlstore
Class ObjectData
- java.lang.Object
- 
- org.apache.openjpa.xmlstore.ObjectData
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public final class ObjectData extends java.lang.Object implements java.lang.CloneableIn-memory form of data in datastore backing a single persistent object.
- 
- 
Constructor SummaryConstructors Constructor Description ObjectData(java.lang.Object oid, ClassMetaData meta)Create the object without underlying data.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clone this data.java.lang.ObjectgetField(int num)Get the data for the field with the given index.java.lang.ObjectgetId()Getter for oid.ClassMetaDatagetMetaData()Get the metadata associated with the type of persistent object for which this data applies.java.lang.LonggetVersion()Get the version number of the object.voidload(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch)Load the data and version information for this object into the given state manager.voidload(OpenJPAStateManager sm, FetchConfiguration fetch)Load the data and version information for this object into the given state manager.voidsetField(int num, java.lang.Object val)Set the data for the field with the given index.voidsetVersion(java.lang.Long version)Set the version number of the object.voidstore(OpenJPAStateManager sm)Store the data and version information for this object from the given state manager.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ObjectDatapublic ObjectData(java.lang.Object oid, ClassMetaData meta)Create the object without underlying data. Just pass in type specific metadata and the oid.
 
- 
 - 
Method Detail- 
getIdpublic java.lang.Object getId() Getter for oid.
 - 
getFieldpublic java.lang.Object getField(int num) Get the data for the field with the given index.
 - 
setFieldpublic void setField(int num, java.lang.Object val)Set the data for the field with the given index.
 - 
setVersionpublic void setVersion(java.lang.Long version) Set the version number of the object.
 - 
getVersionpublic java.lang.Long getVersion() Get the version number of the object.
 - 
getMetaDatapublic ClassMetaData getMetaData() Get the metadata associated with the type of persistent object for which this data applies.
 - 
loadpublic void load(OpenJPAStateManager sm, FetchConfiguration fetch) Load the data and version information for this object into the given state manager. Only fields in the given fetch configuration are loaded.
 - 
loadpublic void load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch) Load the data and version information for this object into the given state manager. Only fields in the given bit set will be loaded.
 - 
storepublic void store(OpenJPAStateManager sm) Store the data and version information for this object from the given state manager. Only dirty fields will be stored.
 - 
clonepublic java.lang.Object clone() Clone this data.- Overrides:
- clonein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-