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.jdbc.kernel OpenJPA-JDBC Runtime Kernelorg.apache.openjpa.jdbc.meta OpenJPA-JDBC ORM Metadataorg.apache.openjpa.jdbc.meta.strats OpenJPA-JDBC ORM Strategiesorg.apache.openjpa.jdbc.sql OpenJPA-JDBC SQL Abstractionorg.apache.openjpa.kernel OpenJPA Runtime Kernelorg.apache.openjpa.persistence OpenJPA JPAorg.apache.openjpa.persistence.jest org.apache.openjpa.slice Extended OpenJPA Interfaces for distributed databases.org.apache.openjpa.util OpenJPA Utilitiesorg.apache.openjpa.util.proxy org.apache.openjpa.xmlstore XML Store -
-
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, java.lang.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, java.lang.Object v1, java.lang.Object v2)
Castsv1
andv2
toComparable
, and invokesv1.compareTo (v2)
.abstract boolean
AbstractStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, java.lang.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, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.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, java.lang.Object edata)
Since this store manager does not provide optimistic locking support, this method always returnstrue
.Method parameters in org.apache.openjpa.abstractstore with type arguments of type OpenJPAStateManager Modifier and Type Method Description java.util.Collection<java.lang.Exception>
AbstractStoreManager. flush(java.util.Collection<OpenJPAStateManager> sms)
Breaks downstates
based on the objects' current states, and delegates toAbstractStoreManager.flush(Collection,Collection,Collection,Collection,Collection)
.protected abstract java.util.Collection<java.lang.Exception>
AbstractStoreManager. flush(java.util.Collection<OpenJPAStateManager> pNew, java.util.Collection<OpenJPAStateManager> pNewUpdated, java.util.Collection<OpenJPAStateManager> pNewFlushedDeleted, java.util.Collection<OpenJPAStateManager> pDirty, java.util.Collection<OpenJPAStateManager> pDeleted)
Responsible for writing modifications happened back to the data store.java.util.Collection<java.lang.Object>
AbstractStoreManager. loadAll(java.util.Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, java.lang.Object edata)
This implementation just delegates to the proper singular method (StoreManager.initialize(org.apache.openjpa.kernel.OpenJPAStateManager, org.apache.openjpa.kernel.PCState, org.apache.openjpa.kernel.FetchConfiguration, java.lang.Object)
orStoreManager.load(org.apache.openjpa.kernel.OpenJPAStateManager, java.util.BitSet, org.apache.openjpa.kernel.FetchConfiguration, int, java.lang.Object)
) depending on each state manager's state. -
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.java.lang.Object
QueryCacheStoreQuery. evaluate(java.lang.Object value, java.lang.Object ob, java.lang.Object[] params, OpenJPAStateManager sm)
boolean
DataCacheStoreManager. exists(OpenJPAStateManager sm, java.lang.Object edata)
boolean
DataCacheStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, java.lang.Object edata)
boolean
DataCacheStoreManager. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.Object edata)
AbstractPCData
DataCachePCDataImpl. newEmbeddedPCData(OpenJPAStateManager sm)
DataCache
AbstractDataCache. selectCache(OpenJPAStateManager sm)
java.lang.String
CacheDistributionPolicy. selectCache(OpenJPAStateManager sm, java.lang.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.java.lang.String
DefaultCacheDistributionPolicy. selectCache(OpenJPAStateManager sm, java.lang.Object context)
java.lang.String
TypeBasedCacheDistributionPolicy. selectCache(OpenJPAStateManager sm, java.lang.Object context)
void
DataCachePCDataImpl. store(OpenJPAStateManager sm)
void
DataCachePCDataImpl. store(OpenJPAStateManager sm, java.util.BitSet fields)
protected void
DataCachePCDataImpl. storeField(OpenJPAStateManager sm, FieldMetaData fmd)
Store field-level information from the given state manager.boolean
DataCacheStoreManager. syncVersion(OpenJPAStateManager sm, java.lang.Object edata)
Method parameters in org.apache.openjpa.datacache with type arguments of type OpenJPAStateManager Modifier and Type Method Description java.util.Collection<java.lang.Exception>
DataCacheStoreManager. flush(java.util.Collection<OpenJPAStateManager> states)
java.util.Collection<java.lang.Object>
DataCacheStoreManager. loadAll(java.util.Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, java.lang.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 java.lang.Object
ExceptionOrphanedKeyAction. orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
java.lang.Object
LogOrphanedKeyAction. orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
java.lang.Object
NoneOrphanedKeyAction. orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
java.lang.Object
OrphanedKeyAction. orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Callback received when OpenJPA discovers an orphaned key. -
Uses of OpenJPAStateManager in org.apache.openjpa.jdbc.kernel
Fields in org.apache.openjpa.jdbc.kernel declared as OpenJPAStateManager Modifier and Type Field Description OpenJPAStateManager
ConnectionInfo. sm
Methods in org.apache.openjpa.jdbc.kernel with parameters of type OpenJPAStateManager Modifier and Type Method Description boolean
JDBCStoreManager. assignField(OpenJPAStateManager sm, int field, boolean preFlush)
boolean
JDBCStoreManager. assignObjectId(OpenJPAStateManager sm, boolean preFlush)
void
JDBCStoreManager. beforeStateChange(OpenJPAStateManager sm, PCState fromState, PCState toState)
protected void
PessimisticLockManager. checkLock(java.sql.ResultSet rs, OpenJPAStateManager sm, int timeout)
This method is to provide override for non-JDBC or JDBC-like implementation of checking lock from the result set.int
JDBCStoreManager. compareVersion(OpenJPAStateManager state, java.lang.Object v1, java.lang.Object v2)
protected void
AbstractUpdateManager. delete(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, java.util.Collection customs)
Recursive method to delete the given instance, base class last.java.lang.Object
JDBCStoreQuery. evaluate(java.lang.Object value, java.lang.Object ob, java.lang.Object[] params, OpenJPAStateManager sm)
Result
FinderQueryImpl. execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch)
boolean
JDBCStoreManager. exists(OpenJPAStateManager sm, java.lang.Object context)
protected void
JDBCStoreManager. getVersion(ClassMapping mapping, OpenJPAStateManager sm, Result res)
This method is to provide override for non-JDBC or JDBC-like implementation of getting version from the result set.boolean
JDBCStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, java.lang.Object context)
protected boolean
JDBCStoreManager. initializeState(OpenJPAStateManager sm, PCState state, JDBCFetchConfiguration fetch, ConnectionInfo info)
Initialize a newly-loaded instance.protected void
AbstractUpdateManager. insert(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, java.util.Collection customs)
Recursive method to insert the given instance, base class first.boolean
JDBCStoreManager. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.Object context)
void
JDBCLockManager. loadedForUpdate(OpenJPAStateManager sm)
Notification that the given instance was loaded via a result set produced by a FOR UPDATE select.void
PessimisticLockManager. loadedForUpdate(OpenJPAStateManager sm)
protected void
MixedLockManager. lockInternal(OpenJPAStateManager sm, int level, int timeout, java.lang.Object sdata, boolean postLockVersionCheck)
protected void
PessimisticLockManager. lockInternal(OpenJPAStateManager sm, int level, int timeout, java.lang.Object sdata, boolean postVersionCheck)
protected void
MixedLockManager. optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, java.lang.Object sdata, boolean postLockVersionCheck)
protected java.util.Collection
AbstractUpdateManager. populateRowManager(OpenJPAStateManager sm, RowManager rowMgr, JDBCStore store, java.util.Collection exceps, java.util.Collection customs)
Populate the row manager with rows to be flushed for the given state.boolean
JDBCStoreManager. select(Select sel, ClassMapping mapping, int subs, OpenJPAStateManager sm, java.util.BitSet fields, JDBCFetchConfiguration fetch, int eager, boolean ident, boolean outer)
For implementation use only.protected void
JDBCStoreManager. setMappedBy(OpenJPAStateManager sm, FieldMapping mappedByFieldMapping, java.lang.Object mappedByObject)
boolean
JDBCStoreManager. syncVersion(OpenJPAStateManager sm, java.lang.Object context)
protected void
AbstractUpdateManager. update(OpenJPAStateManager sm, java.util.BitSet dirty, ClassMapping mapping, RowManager rowMgr, JDBCStore store, java.util.Collection customs, boolean updateIndicators)
Recursive method to update the given instance.protected void
AbstractUpdateManager. updateIndicators(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, java.util.Collection customs, boolean versionUpdateOnly)
Update version and discriminator indicators.Method parameters in org.apache.openjpa.jdbc.kernel with type arguments of type OpenJPAStateManager Modifier and Type Method Description java.util.Collection
JDBCStoreManager. flush(java.util.Collection<OpenJPAStateManager> sms)
Constructors in org.apache.openjpa.jdbc.kernel with parameters of type OpenJPAStateManager Constructor Description CustomMapping(int action, OpenJPAStateManager sm, Strategy strat)
-
Uses of OpenJPAStateManager in org.apache.openjpa.jdbc.meta
Methods in org.apache.openjpa.jdbc.meta with parameters of type OpenJPAStateManager Modifier and Type Method Description void
Version. afterLoad(OpenJPAStateManager sm, JDBCStore store)
void
VersionStrategy. afterLoad(OpenJPAStateManager sm, JDBCStore store)
This method is called after data is loaded into the instance, in case the version indicator works off of a state image.boolean
Version. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
boolean
VersionStrategy. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
Checks the version of the given state manager with the version stored in memory.void
ClassMapping. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
Discriminator. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
FieldMapping. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
Strategy. customDelete(OpenJPAStateManager sm, JDBCStore store)
Override this method to customize flushing this mapping.void
Version. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
ClassMapping. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
Discriminator. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
FieldMapping. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
Strategy. customInsert(OpenJPAStateManager sm, JDBCStore store)
Override this method to customize flushing this mapping.void
Version. customInsert(OpenJPAStateManager sm, JDBCStore store)
boolean
ClassMapping. customLoad(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result result)
boolean
ClassMapping. customLoad(OpenJPAStateManager sm, JDBCStore store, PCState state, JDBCFetchConfiguration fetch)
boolean
ClassStrategy. customLoad(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result result)
Implement this method to customize loading from aResult
into an instance.boolean
ClassStrategy. customLoad(OpenJPAStateManager sm, JDBCStore store, PCState state, JDBCFetchConfiguration fetch)
Implement this method to load the state of a given object, without a previousResult
.void
ClassMapping. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
Discriminator. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
FieldMapping. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
Strategy. customUpdate(OpenJPAStateManager sm, JDBCStore store)
Override this method to customize flushing this mapping.void
Version. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
ClassMapping. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Discriminator. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
FieldMapping. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Strategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
Set the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates.void
Version. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
FieldMapping. deleteRow(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
Delete the row for this object if the reference foreign key exists.java.lang.Object
DelegatingJoinable. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
java.lang.Object
Joinable. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
Return the join value of the given column.Row
FieldMapping. getRow(OpenJPAStateManager sm, JDBCStore store, RowManager rm, int action)
Return the row to use for this field.void
ClassMapping. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Discriminator. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
FieldMapping. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Strategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
Set values for the mapping into the proper rows.void
Version. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
java.lang.Boolean
ClassMapping. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Discriminator. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
FieldMapping. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Strategy. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
ReturnBoolean.FALSE
if this mapping does not customize the delete process,Boolean.TRUE
if it does, or null if it does customize the delete, but also relies on the standard delete method being called.java.lang.Boolean
Version. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
ClassMapping. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Discriminator. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
FieldMapping. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Strategy. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
ReturnBoolean.FALSE
if this mapping does not customize the insert process,Boolean.TRUE
if it does, or null if it does customize the insert, but also relies on the standard insert method being called.java.lang.Boolean
Version. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
ClassMapping. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Discriminator. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
FieldMapping. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
Strategy. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
ReturnBoolean.FALSE
if this mapping does not customize the update process,Boolean.TRUE
if it does, or null if it does customize the update, but also relies on the standard update method being called.java.lang.Boolean
Version. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
void
FieldMapping. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
FieldMapping. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
FieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
Load secondary data using a connection from the store manager.void
FieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
Load virtual row data; the given result is not guaranteed to contain data for this field, so the field mapping should make sure the result contains its needed column data before loading.java.lang.Object
Version. load(OpenJPAStateManager sm, JDBCStore store, Result res)
java.lang.Object
Version. load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins)
java.lang.Object
VersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res)
Load data.java.lang.Object
VersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins)
Load data.void
FieldMapping. loadEagerJoin(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
FieldStrategy. loadEagerJoin(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
Load the joined eager result.java.lang.Object
FieldMapping. loadEagerParallel(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object res)
java.lang.Object
FieldStrategy. loadEagerParallel(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object res)
Load the batched eager result.void
Embeddable. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
Load this strategy's field by transforming the given datastore value.int
FieldMapping. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
FieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
Select the virtual row columns of this mapping.void
FieldMapping. selectEagerJoin(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
FieldStrategy. selectEagerJoin(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
Fill in joined select to related objects.void
FieldMapping. selectEagerParallel(SelectExecutor sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
FieldStrategy. selectEagerParallel(SelectExecutor sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
Fill in parallel eager select for related objects.void
DelegatingJoinable. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autogen)
void
Joinable. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autogen)
Use the given auto-assigned value to set this join value's field on the given instance.void
FieldMapping. setForeignKey(Row row, OpenJPAStateManager sm)
void
FieldMapping. setForeignKey(Row row, OpenJPAStateManager sm, int targetNumber)
void
ValueMapping. setForeignKey(Row row, OpenJPAStateManager rel)
Sets this value's foreign key to the given related object.void
ValueMapping. setForeignKey(Row row, OpenJPAStateManager rel, int targetNumber)
Sets this value's foreign key to the given related object.void
ValueMappingImpl. setForeignKey(Row row, OpenJPAStateManager rel)
void
ValueMappingImpl. setForeignKey(Row row, OpenJPAStateManager rel, int targetNumber)
boolean
ClassMapping. supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch)
boolean
ClassStrategy. supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch)
Return true if this strategy can perform the given select from the givenbase
mapping.int
FieldMapping. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
FieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
Return whether this mapping can perform the given select type.java.lang.Object
ValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
Translate the given datastore value into its Java equivalent.java.lang.Object
RelationId. toRelationDataStoreValue(OpenJPAStateManager sm, Column col)
Return the serialized value for the given related object, now that its id has been assigned.void
ClassMapping. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Discriminator. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
FieldMapping. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
Strategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
Set values for the mapping into the proper rows.void
Version. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
FieldMapping. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
void
FieldStrategy. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
Add a WHERE condition to the row for this field such that the field's current DB value must equal the given previous value.void
FieldMapping. whereForeignKey(Row row, OpenJPAStateManager sm)
void
ValueMapping. whereForeignKey(Row row, OpenJPAStateManager rel)
Sets this value's foreign key to the given related object.void
ValueMappingImpl. whereForeignKey(Row row, OpenJPAStateManager rel)
void
FieldMapping. wherePrimaryKey(Select sel, OpenJPAStateManager sm, JDBCStore store)
Add awherePrimaryKey
orwhereForeignKey
condition to the given select, depending on whether we have a join foreign key. -
Uses of OpenJPAStateManager in org.apache.openjpa.jdbc.meta.strats
Methods in org.apache.openjpa.jdbc.meta.strats that return OpenJPAStateManager Modifier and Type Method Description static OpenJPAStateManager
RelationStrategies. getStateManager(java.lang.Object obj, StoreContext ctx)
Return the state manager for the given instance, using a detached state manager if the instnace is not managed.Methods in org.apache.openjpa.jdbc.meta.strats with parameters of type OpenJPAStateManager Modifier and Type Method Description void
AbstractVersionStrategy. afterLoad(OpenJPAStateManager sm, JDBCStore store)
void
StateComparisonVersionStrategy. afterLoad(OpenJPAStateManager sm, JDBCStore store)
void
SuperclassVersionStrategy. afterLoad(OpenJPAStateManager sm, JDBCStore store)
boolean
AbstractVersionStrategy. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
boolean
ColumnVersionStrategy. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
boolean
StateComparisonVersionStrategy. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
boolean
SuperclassVersionStrategy. checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
void
AbstractStrategy. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
EmbedFieldStrategy. customDelete(OpenJPAStateManager sm, JDBCStore store)
void
AbstractStrategy. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
EmbedFieldStrategy. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
LobFieldStrategy. customInsert(OpenJPAStateManager sm, JDBCStore store)
void
StateComparisonVersionStrategy. customInsert(OpenJPAStateManager sm, JDBCStore store)
This method is for class mappings that take over the insert process, but still want to use this indicator for optimistic locking.boolean
AbstractClassStrategy. customLoad(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result result)
boolean
AbstractClassStrategy. customLoad(OpenJPAStateManager sm, JDBCStore store, PCState state, JDBCFetchConfiguration fetch)
void
AbstractStrategy. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
EmbedFieldStrategy. customUpdate(OpenJPAStateManager sm, JDBCStore store)
void
LobFieldStrategy. customUpdate(OpenJPAStateManager sm, JDBCStore store)
StateComparisonVersionStrategy.CustomUpdate
StateComparisonVersionStrategy. customUpdate(OpenJPAStateManager sm, JDBCStore store, Table table, boolean record)
This method is for class mappings that take over the update process, but still want to use this indicator for optimistic locking.void
AbstractStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
ColumnVersionStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. delete(OpenJPAStateManager owner, OpenJPAStateManager sm, JDBCStore store, RowManager rm, Row row)
Delete an embedded object record.void
FullClassStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerCollectionTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerRelationMapTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
LobFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
MapTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
NoneClassStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
PrimitiveFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationCollectionTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationRelationMapTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyInverseKeyFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyTableFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
StringFieldStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
VerticalClassStrategy. delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
java.lang.Object
HandlerFieldStrategy. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
java.lang.Object
PrimitiveFieldStrategy. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
java.lang.Object
RelationFieldStrategy. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
java.lang.Object
StringFieldStrategy. getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
java.lang.Object
EmbeddedClassStrategy. getNullIndicatorValue(OpenJPAStateManager sm)
Return the proper synthetic null indicator value for the given instance.Result[]
HandlerHandlerMapTableFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] joins, boolean lrs)
Result[]
HandlerRelationMapTableFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] resJoins, boolean lrs)
Result[]
LRSMapFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] joins, boolean lrs)
Return results containing all keys and values for this map.Result[]
RelationHandlerMapTableFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] resJoins, boolean lrs)
Result[]
RelationMapInverseKeyFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] joins, boolean lrs)
Result[]
RelationMapTableFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] joins, boolean lrs)
Result[]
RelationRelationMapTableFieldStrategy. getResults(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins[] resJoins, boolean lrs)
Row
StateComparisonVersionStrategy.CustomUpdate. getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
protected java.lang.Object
MaxEmbeddedBlobFieldStrategy. getValue(OpenJPAStateManager sm)
protected java.lang.Object
MaxEmbeddedByteArrayFieldStrategy. getValue(OpenJPAStateManager sm)
protected java.lang.Object
MaxEmbeddedCharArrayFieldStrategy. getValue(OpenJPAStateManager sm)
protected java.lang.Object
MaxEmbeddedClobFieldStrategy. getValue(OpenJPAStateManager sm)
void
AbstractStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
ColumnVersionStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. insert(OpenJPAStateManager owner, OpenJPAStateManager sm, JDBCStore store, RowManager rm, Row row)
Insert an embedded object.void
FullClassStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerCollectionTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerHandlerMapTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerRelationMapTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
InValueDiscriminatorStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
LobFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
NoneClassStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
PrimitiveFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationCollectionTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationHandlerMapTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationRelationMapTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyInverseKeyFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyTableFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
StateComparisonVersionStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
StringFieldStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
VerticalClassStrategy. insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
protected java.lang.Boolean
MaxEmbeddedBlobFieldStrategy. isCustom(OpenJPAStateManager sm, JDBCStore store)
protected java.lang.Boolean
MaxEmbeddedByteArrayFieldStrategy. isCustom(OpenJPAStateManager sm, JDBCStore store)
protected java.lang.Boolean
MaxEmbeddedCharArrayFieldStrategy. isCustom(OpenJPAStateManager sm, JDBCStore store)
protected java.lang.Boolean
MaxEmbeddedClobFieldStrategy. isCustom(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
AbstractStrategy. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
EmbedFieldStrategy. isCustomDelete(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
AbstractStrategy. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
EmbedFieldStrategy. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
LobFieldStrategy. isCustomInsert(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
AbstractStrategy. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
EmbedFieldStrategy. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
java.lang.Boolean
LobFieldStrategy. isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
void
AbstractFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
AbstractFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
java.lang.Object
AbstractVersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res)
java.lang.Object
AbstractVersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins)
java.lang.Object
ColumnVersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res)
java.lang.Object
ColumnVersionStrategy. load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins)
void
EmbedFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
HandlerFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
HandlerFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
LobFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
MapTableFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
PrimitiveFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
RelationFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
RelationFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
StoreCollectionFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
void
StringFieldStrategy. load(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
AbstractFieldStrategy. loadEagerJoin(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
RelationFieldStrategy. loadEagerJoin(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
void
StoreCollectionFieldStrategy. loadEagerJoin(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
java.lang.Object
AbstractFieldStrategy. loadEagerParallel(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object res)
java.lang.Object
RelationFieldStrategy. loadEagerParallel(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object res)
java.lang.Object
StoreCollectionFieldStrategy. loadEagerParallel(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object res)
java.lang.Object
HandlerCollectionTableFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
LRSCollectionFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
Load an element of the collection.java.lang.Object
RelationCollectionInverseKeyFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationCollectionTableFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
protected java.lang.Object
RelationToManyInverseKeyFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
protected java.lang.Object
RelationToManyTableFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
protected abstract java.lang.Object
StoreCollectionFieldStrategy. loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
Load an element of the collection.void
EmbedFieldStrategy. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
void
HandlerFieldStrategy. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
void
PrimitiveFieldStrategy. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
void
RelationFieldStrategy. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
void
StringFieldStrategy. loadEmbedded(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, java.lang.Object val)
java.lang.Object
HandlerHandlerMapTableFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
HandlerRelationMapTableFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
LRSMapFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
Load a key from the given result.java.lang.Object
RelationHandlerMapTableFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationMapInverseKeyFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationMapTableFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationRelationMapTableFieldStrategy. loadKey(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
static java.lang.Object
HandlerStrategies. loadObject(ValueMapping vm, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins, Column[] cols, boolean objectValueRequiresLoad)
Load the Object value from the given result.java.lang.Object
HandlerHandlerMapTableFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
HandlerRelationMapTableFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
LRSMapFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
Load a value from the given result.java.lang.Object
RelationHandlerMapTableFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationMapInverseKeyFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationMapTableFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
java.lang.Object
RelationRelationMapTableFieldStrategy. loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins)
protected boolean
MapTableFieldStrategy. populateKey(Row row, OpenJPAStateManager valsm, java.lang.Object obj, StoreContext ctx, RowManager rm, JDBCStore store)
protected void
MaxEmbeddedBlobFieldStrategy. putData(OpenJPAStateManager sm, java.sql.ResultSet rs, DBDictionary dict)
protected void
MaxEmbeddedByteArrayFieldStrategy. putData(OpenJPAStateManager sm, java.sql.ResultSet rs, DBDictionary dict)
protected void
MaxEmbeddedCharArrayFieldStrategy. putData(OpenJPAStateManager sm, java.sql.ResultSet rs, DBDictionary dict)
protected void
MaxEmbeddedClobFieldStrategy. putData(OpenJPAStateManager sm, java.sql.ResultSet rs, DBDictionary dict)
int
AbstractFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
EmbedFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
HandlerFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
LobFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
PrimitiveFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
RelationFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
int
StringFieldStrategy. select(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
protected Joins
StoreCollectionFieldStrategy. selectAll(Select sel, ClassMapping elem, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
Select data for loading, starting in field table.void
AbstractFieldStrategy. selectEagerJoin(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
RelationFieldStrategy. selectEagerJoin(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
StoreCollectionFieldStrategy. selectEagerJoin(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
AbstractFieldStrategy. selectEagerParallel(SelectExecutor sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
RelationFieldStrategy. selectEagerParallel(SelectExecutor sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
StoreCollectionFieldStrategy. selectEagerParallel(SelectExecutor sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode)
void
HandlerHandlerMapTableFieldStrategy. selectKey(Select sel, ClassMapping cls, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
HandlerRelationMapTableFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
LRSMapFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
Implement this method to select the keys of this field.void
RelationHandlerMapTableFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationMapInverseKeyFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationMapTableFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationRelationMapTableFieldStrategy. selectKey(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
HandlerHandlerMapTableFieldStrategy. selectValue(Select sel, ClassMapping cls, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
HandlerRelationMapTableFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
LRSMapFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
Implement this method to select the values of this field.void
RelationHandlerMapTableFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationMapInverseKeyFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationMapTableFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
RelationRelationMapTableFieldStrategy. selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins)
void
HandlerFieldStrategy. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autoInc)
void
PrimitiveFieldStrategy. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autoInc)
void
RelationFieldStrategy. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autoInc)
void
StringFieldStrategy. setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autoInc)
boolean
AbstractClassStrategy. supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch)
boolean
FullClassStrategy. supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch)
boolean
VerticalClassStrategy. supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch)
int
AbstractFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
EmbedFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
HandlerCollectionTableFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
HandlerFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
LobFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
MapTableFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
PrimitiveFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
RelationFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
StoreCollectionFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
int
StringFieldStrategy. supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
protected java.lang.Object
EmbedValueHandler. toDataStoreValue(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.lang.Object rval, int idx)
Helper to convert an object value to its datastore equivalent.protected int
EmbedValueHandler. toDataStoreValue1(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.util.List rvals, int idx)
java.lang.Object
AbstractValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
java.lang.Object
ElementEmbedValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
protected void
EmbedValueHandler. toObjectValue(OpenJPAStateManager em, ValueMapping vm, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx)
Helper to convert a datastore value to its object equivalent.java.lang.Object
UntypedPCValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
protected int
EmbedValueHandler. toObjectValue1(OpenJPAStateManager em, ValueMapping vm, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx)
java.lang.Object
ElementEmbedValueHandler. toRelationDataStoreValue(OpenJPAStateManager sm, Column col)
java.lang.Object
UntypedPCValueHandler. toRelationDataStoreValue(OpenJPAStateManager sm, Column col)
void
AbstractStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
ColumnVersionStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
EmbedFieldStrategy. update(OpenJPAStateManager owner, OpenJPAStateManager sm, JDBCStore store, RowManager rm, Row row)
Update an embedded object.void
FullClassStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerCollectionTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerHandlerMapTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
HandlerRelationMapTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
LobFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
protected void
MaxEmbeddedBlobFieldStrategy. update(OpenJPAStateManager sm, Row row)
protected void
MaxEmbeddedByteArrayFieldStrategy. update(OpenJPAStateManager sm, Row row)
protected void
MaxEmbeddedCharArrayFieldStrategy. update(OpenJPAStateManager sm, Row row)
protected void
MaxEmbeddedClobFieldStrategy. update(OpenJPAStateManager sm, Row row)
void
NoneClassStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
PrimitiveFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationCollectionTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationHandlerMapTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationRelationMapTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyInverseKeyFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
RelationToManyTableFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
StateComparisonVersionStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
StringFieldStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
VerticalClassStrategy. update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
void
AbstractFieldStrategy. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
void
HandlerFieldStrategy. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
void
PrimitiveFieldStrategy. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
void
StringFieldStrategy. where(OpenJPAStateManager sm, JDBCStore store, RowManager rm, java.lang.Object prevValue)
-
Uses of OpenJPAStateManager in org.apache.openjpa.jdbc.sql
Methods in org.apache.openjpa.jdbc.sql that return OpenJPAStateManager Modifier and Type Method Description OpenJPAStateManager
PrimaryRow. getForeignKeySet(ForeignKey fk)
Return the value for the given foreign key.OpenJPAStateManager
PrimaryRow. getForeignKeyWhere(ForeignKey fk)
Return the value for the given foreign key.OpenJPAStateManager
PrimaryRow. getPrimaryKey()
OpenJPAStateManager
Row. getPrimaryKey()
Return the instance that controls this row.OpenJPAStateManager
RowImpl. getPrimaryKey()
This implementation does not track primary keys.OpenJPAStateManager
PrimaryRow. getRelationIdSet(Column col)
Return the recorded value for the given relation id column.Methods in org.apache.openjpa.jdbc.sql with parameters of type OpenJPAStateManager Modifier and Type Method Description Row
RowManager. getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
Return the row for the given table and owner object, or null ifcreate
is false and the row has not already been created.Row
RowManagerImpl. getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
void
PrimaryRow. setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)
void
PrimaryRow. setForeignKey(ForeignKey fk, OpenJPAStateManager sm)
void
Row. setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.void
Row. setForeignKey(ForeignKey fk, OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.void
RowImpl. setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)
void
RowImpl. setForeignKey(ForeignKey fk, OpenJPAStateManager sm)
void
SecondaryRow. setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)
void
SecondaryRow. setForeignKey(ForeignKey fk, OpenJPAStateManager sm)
void
PrimaryRow. setPrimaryKey(ColumnIO io, OpenJPAStateManager sm)
void
PrimaryRow. setPrimaryKey(OpenJPAStateManager sm)
void
Row. setPrimaryKey(ColumnIO io, OpenJPAStateManager sm)
Set the primary key to represent the given object.void
Row. setPrimaryKey(OpenJPAStateManager sm)
Set the primary key to represent the given object.void
RowImpl. setPrimaryKey(ColumnIO io, OpenJPAStateManager sm)
void
RowImpl. setPrimaryKey(OpenJPAStateManager sm)
void
PrimaryRow. setRelationId(Column col, OpenJPAStateManager sm, RelationId rel)
void
Row. setRelationId(Column col, OpenJPAStateManager sm, RelationId rel)
Set the value of the given column to the identity of given instance, using the given callback to create the column value.void
RowImpl. setRelationId(Column col, OpenJPAStateManager sm, RelationId rel)
void
SecondaryRow. setRelationId(Column col, OpenJPAStateManager sm, RelationId rel)
boolean
DBDictionary. validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd)
Validate the batch process.boolean
DBDictionary. validateDBSpecificBatchProcess(boolean disableBatch, RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd)
Allow each Dictionary to validate its own batch process.void
PrimaryRow. whereForeignKey(ForeignKey fk, OpenJPAStateManager sm)
void
Row. whereForeignKey(ForeignKey fk, OpenJPAStateManager sm)
Set the foreign key equality criteria to link to the given object.void
RowImpl. whereForeignKey(ForeignKey fk, OpenJPAStateManager sm)
void
PrimaryRow. wherePrimaryKey(OpenJPAStateManager sm)
void
Row. wherePrimaryKey(OpenJPAStateManager sm)
Set the primary key equality criteria for this row.void
RowImpl. wherePrimaryKey(OpenJPAStateManager sm)
Constructors in org.apache.openjpa.jdbc.sql with parameters of type OpenJPAStateManager Constructor Description PrimaryRow(Column[] cols, int action, OpenJPAStateManager owner)
PrimaryRow(Table table, int action, OpenJPAStateManager owner)
Constructor; supply table and action. -
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(java.lang.Object obj, java.lang.Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
DelegatingBroker. embed(java.lang.Object obj, java.lang.Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
StoreContext. embed(java.lang.Object obj, java.lang.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(java.lang.Object obj)
OpenJPAStateManager
DelegatingBroker. getStateManager(java.lang.Object obj)
OpenJPAStateManager
StoreContext. getStateManager(java.lang.Object obj)
Return the state manager for the given instance.OpenJPAStateManager
Broker. persist(java.lang.Object pc, java.lang.Object id, OpCallbacks call)
Make the given instance persistent.OpenJPAStateManager
BrokerImpl. persist(java.lang.Object obj, java.lang.Object id, boolean explicit, OpCallbacks call)
Persist the given object.OpenJPAStateManager
BrokerImpl. persist(java.lang.Object obj, java.lang.Object id, boolean explicit, OpCallbacks call, boolean fireEvent)
Persist the given object.OpenJPAStateManager
BrokerImpl. persist(java.lang.Object obj, java.lang.Object id, OpCallbacks call)
OpenJPAStateManager
DelegatingBroker. persist(java.lang.Object obj, java.lang.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, java.lang.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.java.lang.Object
DetachedStateManager. attach(AttachManager manager, java.lang.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, java.lang.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, java.lang.Object newValue)
Remove all relations between the initial value offmd
for the instance managed bysm
and its inverses.int
DelegatingStoreManager. compareVersion(OpenJPAStateManager state, java.lang.Object v1, java.lang.Object v2)
int
StoreManager. compareVersion(OpenJPAStateManager state, java.lang.Object v1, java.lang.Object v2)
Compare the two version objects.void
InverseManager. correctRelations(OpenJPAStateManager sm, FieldMetaData fmd, java.lang.Object value)
Correct relations from the given dirty field to inverse instances.OpenJPAStateManager
BrokerImpl. embed(java.lang.Object obj, java.lang.Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
DelegatingBroker. embed(java.lang.Object obj, java.lang.Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
OpenJPAStateManager
StoreContext. embed(java.lang.Object obj, java.lang.Object id, OpenJPAStateManager owner, ValueMetaData ownerMeta)
Make the given instance embedded.java.lang.Object
AbstractStoreQuery. evaluate(java.lang.Object value, java.lang.Object ob, java.lang.Object[] params, OpenJPAStateManager sm)
java.lang.Object
StoreQuery. evaluate(java.lang.Object value, java.lang.Object ob, java.lang.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, java.lang.Object context)
boolean
StoreManager. exists(OpenJPAStateManager sm, java.lang.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, java.lang.Object context)
void
PCResultObjectProvider. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch)
Initializes the state manager.boolean
StoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, java.lang.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, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.Object context)
void
PCData. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, java.lang.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, java.lang.Object context)
Loads all fields that are currently stored in the cache into the given state manager.void
PCDataImpl. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, java.lang.Object context)
void
PCDataImpl. load(OpenJPAStateManager sm, FetchConfiguration fetch, java.lang.Object context)
boolean
StoreManager. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.Object edata)
Load the given state manager.protected void
PCDataImpl. loadField(OpenJPAStateManager sm, FieldMetaData fmd, FetchConfiguration fetch, java.lang.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, java.lang.Object sdata)
Obtain a lock on the specified object.void
NoneLockManager. lock(OpenJPAStateManager sm, int level, int timeout, java.lang.Object context)
void
VersionLockManager. lock(OpenJPAStateManager sm, int level, int timeout, java.lang.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, java.lang.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, java.lang.Object sdata, boolean postLockVersionCheck)
int
OpCallbacks. processArgument(int op, java.lang.Object arg, OpenJPAStateManager sm)
Process operation argument.java.lang.Object
BrokerImpl. processReturn(java.lang.Object oid, OpenJPAStateManager sm)
java.lang.Object
FindCallbacks. processReturn(java.lang.Object oid, OpenJPAStateManager sm)
Process operation return value.void
LockManager. refreshLock(OpenJPAStateManager sm, int level, int timeout, java.lang.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, java.lang.Object context)
void
VersionLockManager. refreshLock(OpenJPAStateManager sm, int level, int timeout, java.lang.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, java.lang.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, java.util.BitSet fields)
Store the given fields from the state manager.void
PCDataImpl. store(OpenJPAStateManager sm)
void
PCDataImpl. store(OpenJPAStateManager sm, java.util.BitSet fields)
protected void
InverseManager. storeField(OpenJPAStateManager sm, FieldMetaData fmd, java.lang.Object compare, java.lang.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, java.lang.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, java.lang.Object context)
boolean
StoreManager. syncVersion(OpenJPAStateManager sm, java.lang.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 java.lang.Object
AbstractPCData. toEmbeddedField(OpenJPAStateManager sm, ValueMetaData vmd, java.lang.Object data, FetchConfiguration fetch, java.lang.Object context)
Transform the given data into an embedded PC field value.protected java.lang.Object
AbstractPCData. toField(OpenJPAStateManager sm, FieldMetaData fmd, java.lang.Object data, FetchConfiguration fetch, java.lang.Object context)
Transform the given data value into its field value.protected java.lang.Object
AbstractPCData. toNestedField(OpenJPAStateManager sm, ValueMetaData vmd, java.lang.Object data, FetchConfiguration fetch, java.lang.Object context)
Transform the given data value to its field value.protected java.util.Collection
AbstractPCData. toNestedFields(OpenJPAStateManager sm, ValueMetaData vmd, java.util.Collection data, FetchConfiguration fetch, java.lang.Object context)
Transform the given data value to its field value.protected java.lang.Object
AbstractPCData. toRelationField(OpenJPAStateManager sm, ValueMetaData vmd, java.lang.Object data, FetchConfiguration fetch, java.lang.Object context)
Transform the given data into a relation field value.protected java.lang.Object[]
AbstractPCData. toRelationFields(OpenJPAStateManager sm, java.lang.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 java.util.Collection<java.lang.Exception>
DelegatingStoreManager. flush(java.util.Collection<OpenJPAStateManager> sms)
java.util.Collection<java.lang.Exception>
StoreManager. flush(java.util.Collection<OpenJPAStateManager> sms)
Flush the given state manager collection to the datastore, returning a collection of exceptions encountered during flushing.java.util.Collection<java.lang.Object>
DelegatingStoreManager. loadAll(java.util.Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, java.lang.Object context)
java.util.Collection<java.lang.Object>
StoreManager. loadAll(java.util.Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, java.lang.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, java.util.BitSet load, boolean access, boolean multithreaded)
Constructor.ObjectIdStateManager(java.lang.Object oid, OpenJPAStateManager owner, ValueMetaData ownerVal)
Constructor; supply embedded object id and its owner. -
Uses of OpenJPAStateManager in org.apache.openjpa.persistence
Methods in org.apache.openjpa.persistence with parameters of type OpenJPAStateManager Modifier and Type Method Description int
EntityManagerImpl. processArgument(int op, java.lang.Object obj, OpenJPAStateManager sm)
java.lang.Object
EntityManagerImpl. processReturn(java.lang.Object oid, OpenJPAStateManager sm)
-
Uses of OpenJPAStateManager in org.apache.openjpa.persistence.jest
Methods in org.apache.openjpa.persistence.jest that return types with arguments of type OpenJPAStateManager Modifier and Type Method Description java.util.Iterator<OpenJPAStateManager>
Closure. iterator()
Methods in org.apache.openjpa.persistence.jest with parameters of type OpenJPAStateManager Modifier and Type Method Description static java.lang.String
IOR. toString(OpenJPAStateManager sm)
Stringified representation of a managed instance identity.Method parameters in org.apache.openjpa.persistence.jest with type arguments of type OpenJPAStateManager Modifier and Type Method Description JSON
JSONObjectFormatter. encode(java.util.Collection<OpenJPAStateManager> sms, jakarta.persistence.metamodel.Metamodel model)
T
ObjectFormatter. encode(java.util.Collection<OpenJPAStateManager> objs, jakarta.persistence.metamodel.Metamodel model)
Encode thepersistent closure
of the given collection of managed instances as a resource e.g a XML or HTML document or an interactive document with JavaScript or a JSON array.org.w3c.dom.Document
XMLFormatter. encode(java.util.Collection<OpenJPAStateManager> sms, jakarta.persistence.metamodel.Metamodel model)
Encodes the closure of given collection of managed instance into a new XML document according to JEST Instance XML Schema.JSON
JSONObjectFormatter. writeOut(java.util.Collection<OpenJPAStateManager> sms, jakarta.persistence.metamodel.Metamodel model, java.lang.String title, java.lang.String desc, java.lang.String uri, java.io.OutputStream out)
T
ObjectFormatter. writeOut(java.util.Collection<OpenJPAStateManager> objs, jakarta.persistence.metamodel.Metamodel model, java.lang.String title, java.lang.String desc, java.lang.String uri, java.io.OutputStream out)
Encodes thepersistent closure
of the given collection of objects, then write it into the given output stream.org.w3c.dom.Document
XMLFormatter. writeOut(java.util.Collection<OpenJPAStateManager> objs, jakarta.persistence.metamodel.Metamodel model, java.lang.String title, java.lang.String desc, java.lang.String uri, java.io.OutputStream out)
Constructors in org.apache.openjpa.persistence.jest with parameters of type OpenJPAStateManager Constructor Description Closure(OpenJPAStateManager root)
Constructor parameters in org.apache.openjpa.persistence.jest with type arguments of type OpenJPAStateManager Constructor Description Closure(java.util.Collection<OpenJPAStateManager> roots)
-
Uses of OpenJPAStateManager in org.apache.openjpa.slice
Methods in org.apache.openjpa.slice that return OpenJPAStateManager Modifier and Type Method Description OpenJPAStateManager
DistributedBrokerImpl. persist(java.lang.Object pc, java.lang.Object id, boolean explicit, OpCallbacks call)
Assigns slice identifier to the resultant StateManager as initialized by the super class implementation.Methods in org.apache.openjpa.slice with parameters of type OpenJPAStateManager Modifier and Type Method Description static SliceInfo
SliceImplHelper. getSliceInfo(OpenJPAStateManager sm)
Gets the assigned slice information, if any, from the given StateManager.static SliceInfo
SliceImplHelper. getSlicesByPolicy(OpenJPAStateManager sm, DistributedConfiguration conf, java.lang.Object ctx)
Gets the target slices for the given StateManager.static boolean
SliceImplHelper. isSliceAssigned(OpenJPAStateManager sm)
Affirms if the given StateManager has an assigned slice.SliceInfo
SliceInfo. setInto(OpenJPAStateManager sm)
Sets this receiver as the given StateManager's internal instance-level data. -
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 java.util.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)
-
Uses of OpenJPAStateManager in org.apache.openjpa.xmlstore
Methods in org.apache.openjpa.xmlstore with parameters of type OpenJPAStateManager Modifier and Type Method Description boolean
XMLStoreManager. exists(OpenJPAStateManager sm, java.lang.Object context)
boolean
XMLStoreManager. initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, java.lang.Object context)
void
ObjectData. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch)
Load the data and version information for this object into the given state manager.void
ObjectData. load(OpenJPAStateManager sm, FetchConfiguration fetch)
Load the data and version information for this object into the given state manager.boolean
XMLStoreManager. load(OpenJPAStateManager sm, java.util.BitSet fields, FetchConfiguration fetch, int lockLevel, java.lang.Object context)
void
ObjectData. store(OpenJPAStateManager sm)
Store the data and version information for this object from the given state manager.boolean
XMLStoreManager. syncVersion(OpenJPAStateManager sm, java.lang.Object context)
Method parameters in org.apache.openjpa.xmlstore with type arguments of type OpenJPAStateManager Modifier and Type Method Description protected java.util.Collection
XMLStoreManager. flush(java.util.Collection<OpenJPAStateManager> pNew, java.util.Collection<OpenJPAStateManager> pNewUpdated, java.util.Collection<OpenJPAStateManager> pNewFlushedDeleted, java.util.Collection<OpenJPAStateManager> pDirty, java.util.Collection<OpenJPAStateManager> pDeleted)
-