Uses of Interface
org.apache.openjpa.kernel.OpenJPAStateManager
-
Packages that use OpenJPAStateManager Package Description org.apache.openjpa.abstractstore OpenJPA Abstract StoreManager Implementationorg.apache.openjpa.datacache OpenJPA Data Cacheorg.apache.openjpa.event OpenJPA Eventsorg.apache.openjpa.kernel OpenJPA Runtime Kernelorg.apache.openjpa.util OpenJPA Utilitiesorg.apache.openjpa.util.proxy -
-
Uses of OpenJPAStateManager in org.apache.openjpa.abstractstore
Methods in org.apache.openjpa.abstractstore with parameters of type OpenJPAStateManager Modifier and Type Method Description protected boolean
AbstractStoreManager. assignDataStoreId(OpenJPAStateManager sm, Object val)
Assign a new datastore identity to the given instance.boolean
AbstractStoreManager. assignField(OpenJPAStateManager sm, int field, boolean preFlush)
boolean
AbstractStoreManager. assignObjectId(OpenJPAStateManager sm, boolean preFlush)
void
AbstractStoreManager. beforeStateChange(OpenJPAStateManager sm, PCState fromState, PCState toState)
int
AbstractStoreManager. compareVersion(OpenJPAStateManager state, Object v1, Object v2)
abstract boolean
AbstractStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object edata)
This method is invoked when OpenJPA needs to load an object whose identity is known but which has not yet been loaded from the data store.abstract boolean
AbstractStoreManager. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, int lockLevel, Object edata)
This method is invoked when OpenJPA needs to load additional data into an object that has already been at least partially loaded by a previousAbstractStoreManager.initialize(org.apache.openjpa.kernel.OpenJPAStateManager, org.apache.openjpa.kernel.PCState, org.apache.openjpa.kernel.FetchConfiguration, java.lang.Object)
invocation.boolean
AbstractStoreManager. syncVersion(OpenJPAStateManager sm, Object edata)
Since this store manager does not provide optimistic locking support, this method always returnstrue
. -
Uses of OpenJPAStateManager in org.apache.openjpa.datacache
Methods in org.apache.openjpa.datacache with parameters of type OpenJPAStateManager Modifier and Type Method Description protected void
DataCachePCDataImpl. clearInverseRelationCache(OpenJPAStateManager sm, FieldMetaData fmd)
Check if this field is in use of "order by" by other field collections in inverse relation.Object
QueryCacheStoreQuery. evaluate(Object value, Object ob, Object[] params, OpenJPAStateManager sm)
boolean
DataCacheStoreManager. exists(OpenJPAStateManager sm, Object edata)
boolean
DataCacheStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object edata)
boolean
DataCacheStoreManager. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, int lockLevel, Object edata)
AbstractPCData
DataCachePCDataImpl. newEmbeddedPCData(OpenJPAStateManager sm)
DataCache
AbstractDataCache. selectCache(OpenJPAStateManager sm)
String
CacheDistributionPolicy. selectCache(OpenJPAStateManager sm, Object context)
Selects the name of the cache where the given managed proxy object state be cached.DataCache
DataCacheManager. selectCache(OpenJPAStateManager sm)
Select the cache where the given managed proxy instance should be cached.DataCache
DataCacheManagerImpl. selectCache(OpenJPAStateManager sm)
Select cache for the given managed instance.String
DefaultCacheDistributionPolicy. selectCache(OpenJPAStateManager sm, Object context)
String
TypeBasedCacheDistributionPolicy. selectCache(OpenJPAStateManager sm, Object context)
void
DataCachePCDataImpl. store(OpenJPAStateManager sm)
void
DataCachePCDataImpl. store(OpenJPAStateManager sm, BitSet fields)
protected void
DataCachePCDataImpl. storeField(OpenJPAStateManager sm, FieldMetaData fmd)
Store field-level information from the given state manager.boolean
DataCacheStoreManager. syncVersion(OpenJPAStateManager sm, Object edata)
Method parameters in org.apache.openjpa.datacache with type arguments of type OpenJPAStateManager Modifier and Type Method Description Collection<Exception>
DataCacheStoreManager. flush(Collection<OpenJPAStateManager> states)
Collection<Object>
DataCacheStoreManager. loadAll(Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, Object edata)
-
Uses of OpenJPAStateManager in org.apache.openjpa.event
Methods in org.apache.openjpa.event with parameters of type OpenJPAStateManager Modifier and Type Method Description Object
ExceptionOrphanedKeyAction. orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Object
LogOrphanedKeyAction. orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Object
NoneOrphanedKeyAction. orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Object
OrphanedKeyAction. orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Callback received when OpenJPA discovers an orphaned key. -
Uses of OpenJPAStateManager in org.apache.openjpa.kernel
Classes in org.apache.openjpa.kernel that implement OpenJPAStateManager Modifier and Type Class Description class
DetachedStateManager
Internal state manager for detached instances.class
DetachedValueStateManager
Implementation ofOpenJPAStateManager
designed to retrieve values from a detached instance, including when managed by aDetachedStateManager
.class
ObjectIdStateManager
State manager used to access state of embedded object id primary key fields.class
StateManagerImpl
Implementation of theOpenJPAStateManager
interface for use with this runtime.Methods in org.apache.openjpa.kernel that return OpenJPAStateManager Modifier and Type Method Description OpenJPAStateManager
BrokerImpl. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
DelegatingBroker. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
StoreContext. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
Make the given instance embedded.OpenJPAStateManager
DetachedStateManager. getOwner()
OpenJPAStateManager
DetachedValueStateManager. getOwner()
OpenJPAStateManager
ObjectIdStateManager. getOwner()
OpenJPAStateManager
OpenJPAStateManager. getOwner()
Return the owning state if this is an embedded instance.OpenJPAStateManager
StateManagerImpl. getOwner()
OpenJPAStateManager
BrokerImpl. getStateManager(Object obj)
OpenJPAStateManager
DelegatingBroker. getStateManager(Object obj)
OpenJPAStateManager
StoreContext. getStateManager(Object obj)
Return the state manager for the given instance.OpenJPAStateManager
Broker. persist(Object pc, Object id, OpCallbacks call)
Make the given instance persistent.OpenJPAStateManager
BrokerImpl. persist(Object obj, Object id, boolean explicit, OpCallbacks call)
Persist the given object.OpenJPAStateManager
BrokerImpl. persist(Object obj, Object id, boolean explicit, OpCallbacks call, boolean fireEvent)
Persist the given object.OpenJPAStateManager
BrokerImpl. persist(Object obj, Object id, OpCallbacks call)
OpenJPAStateManager
DelegatingBroker. persist(Object obj, Object id, OpCallbacks call)
Methods in org.apache.openjpa.kernel with parameters of type OpenJPAStateManager Modifier and Type Method Description protected void
InverseManager. addToCollection(OpenJPAStateManager sm, FieldMetaData fmd, Object val)
Add the given value to the collection at the selected field.boolean
DelegatingStoreManager. assignField(OpenJPAStateManager sm, int field, boolean preFlush)
boolean
StoreManager. assignField(OpenJPAStateManager sm, int field, boolean preFlush)
Assign a value to the given field.boolean
DelegatingStoreManager. assignObjectId(OpenJPAStateManager sm, boolean preFlush)
boolean
StoreManager. assignObjectId(OpenJPAStateManager sm, boolean preFlush)
Assign an object id to the given new instance.Object
DetachedStateManager. attach(AttachManager manager, Object toAttach, ClassMetaData meta, PersistenceCapable into, OpenJPAStateManager owner, ValueMetaData ownerMeta, boolean explicit)
void
DelegatingStoreManager. beforeStateChange(OpenJPAStateManager sm, PCState fromState, PCState toState)
void
StoreManager. beforeStateChange(OpenJPAStateManager sm, PCState fromState, PCState toState)
Notification that the given state manager is about to change its lifecycle state.protected void
InverseManager. clearInverseRelations(OpenJPAStateManager sm, Object val, FieldMetaData fmd, FieldMetaData[] inverses)
Clear all inverse the relations fromval
to the instance managed bysm
.protected void
InverseManager. clearInverseRelations(OpenJPAStateManager sm, FieldMetaData fmd, FieldMetaData[] inverses, Object newValue)
Remove all relations between the initial value offmd
for the instance managed bysm
and its inverses.int
DelegatingStoreManager. compareVersion(OpenJPAStateManager state, Object v1, Object v2)
int
StoreManager. compareVersion(OpenJPAStateManager state, Object v1, Object v2)
Compare the two version objects.void
InverseManager. correctRelations(OpenJPAStateManager sm, FieldMetaData fmd, Object value)
Correct relations from the given dirty field to inverse instances.OpenJPAStateManager
BrokerImpl. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
DelegatingBroker. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
StoreContext. embed(Object obj, Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
Make the given instance embedded.Object
AbstractStoreQuery. evaluate(Object value, Object ob, Object[] params, OpenJPAStateManager sm)
Object
StoreQuery. evaluate(Object value, Object ob, Object[] params, OpenJPAStateManager sm)
R
FinderQuery. execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
Execute the query for a given instance.boolean
DelegatingStoreManager. exists(OpenJPAStateManager sm, Object context)
boolean
StoreManager. exists(OpenJPAStateManager sm, Object edata)
Verify that the given instance exists in the data store; return false if it does not.int
LockManager. getLockLevel(OpenJPAStateManager sm)
Return the lock level of the specified instance, orLockLevels.LOCK_NONE
if not locked.int
NoneLockManager. getLockLevel(OpenJPAStateManager sm)
int
VersionLockManager. getLockLevel(OpenJPAStateManager sm)
Returns the given instance's lock level, assuming that the state's lock object is a number.void
AbstractPCResultObjectProvider. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch)
boolean
DelegatingStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context)
void
PCResultObjectProvider. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch)
Initializes the state manager.boolean
StoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object edata)
Initialize the given state manager.protected abstract void
AbstractPCResultObjectProvider. load(OpenJPAStateManager sm, FetchConfiguration fetch)
Load data from the current input record into the given state manager.boolean
DelegatingStoreManager. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, int lockLevel, Object context)
void
PCData. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, Object context)
Loads some or all of the marked fields from the cache into the given state manager.void
PCData. load(OpenJPAStateManager sm, FetchConfiguration fetch, Object context)
Loads all fields that are currently stored in the cache into the given state manager.void
PCDataImpl. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, Object context)
void
PCDataImpl. load(OpenJPAStateManager sm, FetchConfiguration fetch, Object context)
boolean
StoreManager. load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, int lockLevel, Object edata)
Load the given state manager.protected void
PCDataImpl. loadField(OpenJPAStateManager sm, FieldMetaData fmd, FetchConfiguration fetch, Object context)
Set field-level information into the given state manager.protected void
PCDataImpl. loadImplData(OpenJPAStateManager sm)
Set impl data information into the given state manager.protected void
PCDataImpl. loadImplData(OpenJPAStateManager sm, FieldMetaData fmd)
Set field-level impl data into the given state manager.protected void
PCDataImpl. loadIntermediate(OpenJPAStateManager sm, FieldMetaData fmd)
Set intermediate information for the given field into the state manager.protected void
PCDataImpl. loadVersion(OpenJPAStateManager sm)
Set version information into the given state manager.void
LockManager. lock(OpenJPAStateManager sm, int level, int timeout, Object sdata)
Obtain a lock on the specified object.void
NoneLockManager. lock(OpenJPAStateManager sm, int level, int timeout, Object context)
void
VersionLockManager. lock(OpenJPAStateManager sm, int level, int timeout, Object sdata)
Delegates toVersionLockManager.lockInternal(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object, boolean)
after traversing to owning instance (if embedded) and assuring that the instance is persistent, is not new, and is not already locked at a higher level.protected void
VersionLockManager. lockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
Marks the instance's transactional status in accordance with the settings ofVersionLockManager.getVersionCheckOnReadLock()
andVersionLockManager.getVersionUpdateOnWriteLock()
.abstract AbstractPCData
AbstractPCData. newEmbeddedPCData(OpenJPAStateManager sm)
Create a new pcdata for holding the state of an embedded instance.AbstractPCData
PCDataImpl. newEmbeddedPCData(OpenJPAStateManager sm)
Return a newPCData
implementation of the right type for embedded instances.protected void
VersionLockManager. optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
int
OpCallbacks. processArgument(int op, Object arg, OpenJPAStateManager sm)
Process operation argument.Object
BrokerImpl. processReturn(Object oid, OpenJPAStateManager sm)
Object
FindCallbacks. processReturn(Object oid, OpenJPAStateManager sm)
Process operation return value.void
LockManager. refreshLock(OpenJPAStateManager sm, int level, int timeout, Object sdata)
Perform the same function as previous lock method and has the option to perform a version check after the lock function has completed.void
NoneLockManager. refreshLock(OpenJPAStateManager sm, int level, int timeout, Object context)
void
VersionLockManager. refreshLock(OpenJPAStateManager sm, int level, int timeout, Object sdata)
void
LockManager. release(OpenJPAStateManager sm)
Release the lock on the given object.void
NoneLockManager. release(OpenJPAStateManager sm)
void
VersionLockManager. release(OpenJPAStateManager sm)
Nulls given instance's lock object.protected void
InverseManager. removeFromCollection(OpenJPAStateManager sm, FieldMetaData fmd, Object val)
Remove the given instance from the collection.protected void
VersionLockManager. setLockLevel(OpenJPAStateManager sm, int level)
Sets the given instance's lock level to the given number.void
PCData. store(OpenJPAStateManager sm)
Store all loaded fields of the state manager.void
PCData. store(OpenJPAStateManager sm, BitSet fields)
Store the given fields from the state manager.void
PCDataImpl. store(OpenJPAStateManager sm)
void
PCDataImpl. store(OpenJPAStateManager sm, BitSet fields)
protected void
InverseManager. storeField(OpenJPAStateManager sm, FieldMetaData fmd, Object compare, Object val)
Store a given value at the given field.protected void
PCDataImpl. storeField(OpenJPAStateManager sm, FieldMetaData fmd)
Store field-level information from the given state manager.protected void
PCDataImpl. storeImplData(OpenJPAStateManager sm)
Store impl data from the given state manager.protected void
PCDataImpl. storeImplData(OpenJPAStateManager sm, FieldMetaData fmd, boolean fieldLoaded)
Store impl data for the given field.protected void
PCDataImpl. storeIntermediate(OpenJPAStateManager sm, FieldMetaData fmd)
Store the intermediate field value for the given field.protected void
InverseManager. storeNull(OpenJPAStateManager sm, FieldMetaData fmd, Object compare)
Store null value at the given field.protected void
PCDataImpl. storeVersion(OpenJPAStateManager sm)
Store version information from the given state manager.boolean
DelegatingStoreManager. syncVersion(OpenJPAStateManager sm, Object context)
boolean
StoreManager. syncVersion(OpenJPAStateManager sm, Object edata)
Update the version information in the given state manager to the version stored in the data store.protected void
InverseManager. throwException(OpenJPAStateManager sm, FieldMetaData fmd)
Throw an inconsistency exceptionprotected Object
AbstractPCData. toEmbeddedField(OpenJPAStateManager sm, ValueMetaData vmd, Object data, FetchConfiguration fetch, Object context)
Transform the given data into an embedded PC field value.protected Object
AbstractPCData. toField(OpenJPAStateManager sm, FieldMetaData fmd, Object data, FetchConfiguration fetch, Object context)
Transform the given data value into its field value.protected Object
AbstractPCData. toNestedField(OpenJPAStateManager sm, ValueMetaData vmd, Object data, FetchConfiguration fetch, Object context)
Transform the given data value to its field value.protected Collection
AbstractPCData. toNestedFields(OpenJPAStateManager sm, ValueMetaData vmd, Collection data, FetchConfiguration fetch, Object context)
Transform the given data value to its field value.protected Object
AbstractPCData. toRelationField(OpenJPAStateManager sm, ValueMetaData vmd, Object data, FetchConfiguration fetch, Object context)
Transform the given data into a relation field value.protected Object[]
AbstractPCData. toRelationFields(OpenJPAStateManager sm, Object data, FetchConfiguration fetch)
Transform the given data into relation field values.protected void
InverseManager. warnConsistency(OpenJPAStateManager sm, FieldMetaData fmd)
Log an inconsistency warningMethod parameters in org.apache.openjpa.kernel with type arguments of type OpenJPAStateManager Modifier and Type Method Description Collection<Exception>
DelegatingStoreManager. flush(Collection<OpenJPAStateManager> sms)
Collection<Exception>
StoreManager. flush(Collection<OpenJPAStateManager> sms)
Flush the given state manager collection to the datastore, returning a collection of exceptions encountered during flushing.Collection<Object>
DelegatingStoreManager. loadAll(Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, Object context)
Collection<Object>
StoreManager. loadAll(Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, Object edata)
Initialize, load, or validate the existance of all of the given objects.Constructors in org.apache.openjpa.kernel with parameters of type OpenJPAStateManager Constructor Description DetachedStateManager(PersistenceCapable pc, OpenJPAStateManager sm, BitSet load, boolean access, boolean multithreaded)
Constructor.ObjectIdStateManager(Object oid, OpenJPAStateManager owner, ValueMetaData ownerVal)
Constructor; supply embedded object id and its owner. -
Uses of OpenJPAStateManager in org.apache.openjpa.util
Methods in org.apache.openjpa.util that return OpenJPAStateManager Modifier and Type Method Description OpenJPAStateManager
AbstractLRSProxyCollection. getOwner()
OpenJPAStateManager
AbstractLRSProxyMap. getOwner()
OpenJPAStateManager
Proxy. getOwner()
Return the owning object.Methods in org.apache.openjpa.util with parameters of type OpenJPAStateManager Modifier and Type Method Description static boolean
ApplicationIds. assign(OpenJPAStateManager sm, StoreManager store, boolean preFlush)
Assign an application identity object to the given state, or return false if determining the application identity requires a flush.static BitSet
ImplHelper. getUpdateFields(OpenJPAStateManager sm)
Returns the fields of the state that require an update.static boolean
Proxies. isOwner(Proxy proxy, OpenJPAStateManager sm, int field)
Used by proxy types to check if the given owners and field names are equivalent.void
AbstractLRSProxyCollection. setOwner(OpenJPAStateManager sm, int field)
void
AbstractLRSProxyMap. setOwner(OpenJPAStateManager sm, int field)
void
Proxy. setOwner(OpenJPAStateManager sm, int field)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. -
Uses of OpenJPAStateManager in org.apache.openjpa.util.proxy
Methods in org.apache.openjpa.util.proxy with parameters of type OpenJPAStateManager Modifier and Type Method Description void
DelayedArrayListProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedHashSetProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedLinkedHashSetProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedLinkedListProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedPriorityQueueProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedTreeSetProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
void
DelayedVectorProxy. setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
-