setVersion

Set the version indicator for this instance, as loaded from the
data store. This method is used by the StoreManager when
loading instance data. On rollback, the version will be rolled back
to this value. Version objects should be serializable and should not
require vendor-specific classes, because they are transferred to
detached objects.

initialize

Initialize the state manager with a new instance of the given
persistence capable type and the proper lifecycle state.
Invoking this method may change the object id and metadata for the
state manager, as the concrete type specified in the parameter may be
a subclass of the expected type.

setObjectId

Set the object id for the managed instance. Some back ends may not be
able to assign a permanent oid until flush. Do not call this method on
application identity instances; changing the primary key fields of
application identity objects through the storeXXXField
methods will automatically change the oid.

getId

Return the identifier for this state manager. This may return a
temporary identifier for new unflushed instances that have not been
assigned an object id, or for non-persistent or embedded instances.
For all other instances this method is the same as OpenJPAStateManager.getObjectId().

setImplData

Field-level impl data. Field-level data only applies to loaded fields,
and is cleared when the field is cleared. Whether the data is cached
across instances depends on the corresponding field metadata's response
to FieldMetaData.usesImplData().

getIntermediate

Use intermediate field data to store intermediate information that
might be available before the field is fully loaded. The system
will automatically clear this data when the field gets loaded.
This data should be cacheable; the datastore cache will attempt to
cache it if the field value is not available.

setIntermediate

Use intermediate field data to store intermediate information that
might be available before the field is fully loaded. The system
will automatically clear this data when the field gets loaded.
This data should be cacheable; the datastore cache will attempt to
cache it if the field value is not available.

setRemote

Set the given field to the given value. Make the field dirty as
if user code set it. Do not delete dependent objects in the field's
current value. This method is invoked by the remote package to
synch a server-side state manager with remote changes. We do not
need to delete dependent instances because they will have been
deleted when the field changed on the client side, and those
client-side deletes will be transmitted independently.