Constructor and Description |
---|
ObjectData(Object oid,
ClassMetaData meta)
Create the object without underlying data.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this data.
|
Object |
getField(int num)
Get the data for the field with the given index.
|
Object |
getId()
Getter for oid.
|
ClassMetaData |
getMetaData()
Get the metadata associated with the type of persistent object for
which this data applies.
|
Long |
getVersion()
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 |
setField(int num,
Object val)
Set the data for the field with the given index.
|
void |
setVersion(Long version)
Set the version number of the object.
|
void |
store(OpenJPAStateManager sm)
Store the data and version information for this object from the
given state manager.
|
String |
toString() |
public ObjectData(Object oid, ClassMetaData meta)
public Object getId()
public Object getField(int num)
public void setField(int num, Object val)
public void setVersion(Long version)
public Long getVersion()
public ClassMetaData getMetaData()
public void load(OpenJPAStateManager sm, FetchConfiguration fetch)
public void load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch)
public void store(OpenJPAStateManager sm)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.