Uses of Interface
org.apache.openjpa.kernel.StoreContext
Package
Description
OpenJPA Abstract StoreManager Implementation
OpenJPA Data Cache
OpenJPA-JDBC Configuration
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC Expression Tree
OpenJPA-JDBC ORM Strategies
OpenJPA-JDBC SQL Abstraction
OpenJPA Runtime Kernel
OpenJPA Expression Tree
OpenJPA Metadata
OpenJPA JPA
Extended OpenJPA Interfaces for distributed databases.
OpenJPA Utilities
-
Uses of StoreContext in org.apache.openjpa.abstractstore
Modifier and TypeMethodDescriptionAbstractStoreManager.getContext()
Returns theStoreContext
that this store manager is associated with. -
Uses of StoreContext in org.apache.openjpa.datacache
Modifier and TypeMethodDescriptionvoid
DataCacheStoreManager.setContext
(StoreContext ctx) protected Object
DataCachePCDataImpl.toData
(FieldMetaData fmd, Object val, StoreContext ctx) protected Object
DataCachePCDataImpl.toNestedData
(ValueMetaData vmd, Object val, StoreContext ctx) ModifierConstructorDescriptionCachedList
(QueryResult res, boolean proj, StoreContext ctx, FetchConfiguration fc) -
Uses of StoreContext in org.apache.openjpa.jdbc.conf
Modifier and TypeMethodDescriptionJDBCConfiguration.getDataSource
(StoreContext ctx) Return the primary data source to use.JDBCConfigurationImpl.getDataSource
(StoreContext ctx) JDBCConfiguration.getDataSource2
(StoreContext ctx) Return the non-enlisted data source to use.JDBCConfigurationImpl.getDataSource2
(StoreContext ctx) -
Uses of StoreContext in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionJDBCStore.getContext()
Current persistence context.JDBCStoreManager.getContext()
Modifier and TypeMethodDescriptionvoid
AbstractJDBCSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) AbstractJDBCSeq.current
(StoreContext ctx, ClassMetaData meta) AbstractJDBCSeq.next
(StoreContext ctx, ClassMetaData meta) void
JDBCFetchConfigurationImpl.setContext
(StoreContext ctx) void
JDBCStoreManager.setContext
(StoreContext ctx) void
JDBCStoreManager.setContext
(StoreContext ctx, JDBCConfiguration conf) void
PessimisticLockManager.setContext
(StoreContext ctx) -
Uses of StoreContext in org.apache.openjpa.jdbc.kernel.exps
Modifier and TypeMethodDescriptionprotected Object
PCPath.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) GetColumn.evaluate
(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx) SQLEmbed.evaluate
(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx) -
Uses of StoreContext in org.apache.openjpa.jdbc.meta.strats
Modifier and TypeMethodDescriptionstatic OpenJPAStateManager
RelationStrategies.getStateManager
(Object obj, StoreContext ctx) Return the state manager for the given instance, using a detached state manager if the instnace is not managed.protected boolean
MapTableFieldStrategy.populateKey
(Row row, OpenJPAStateManager valsm, Object obj, StoreContext ctx, RowManager rm, JDBCStore store) -
Uses of StoreContext in org.apache.openjpa.jdbc.sql
Modifier and TypeMethodDescriptionprotected Result
SelectImpl.execute
(StoreContext ctx, JDBCStore store, JDBCFetchConfiguration fetch, int lockLevel) Execute this select in the context of the given store manager. -
Uses of StoreContext in org.apache.openjpa.kernel
Modifier and TypeInterfaceDescriptioninterface
The broker is the primary interface into the OpenJPA runtime.Modifier and TypeClassDescriptionclass
ConcreteBroker
.class
Delegating broker that can also perform exception translation for use in facades.class
Subtype ofBrokerImpl
that automatically closes itself during finalization.Modifier and TypeFieldDescriptionprotected StoreContext
AbstractLockManager.ctx
The context against which this LockManager is operating.protected final StoreContext
AbstractPCResultObjectProvider.ctx
TheStoreContext
that this result object provider will load objects into.FetchConfigurationImpl.ConfigurationState.ctx
Modifier and TypeMethodDescriptionAbstractLockManager.getContext()
AbstractPCResultObjectProvider.getContext()
Return the context this provider was constructed with.DelegatingFetchConfiguration.getContext()
DetachedStateManager.getContext()
DetachedValueStateManager.getContext()
FetchConfiguration.getContext()
Return the context associated with this configuration; may be null if it has not been set or this object has been serialized.FetchConfigurationImpl.getContext()
ObjectIdStateManager.getContext()
OpenJPAStateManager.getContext()
Return the managing context.StateManagerImpl.getContext()
DelegatingQuery.getStoreContext()
QueryContext.getStoreContext()
The persistence context for the query.QueryImpl.getStoreContext()
Modifier and TypeMethodDescriptionvoid
DelegatingSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) void
Seq.allocate
(int additional, StoreContext ctx, ClassMetaData cls) Allocate additional values efficiently.void
TimeSeededSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) void
UUIDHexSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) void
UUIDStringSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) void
UUIDType4HexSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) void
UUIDType4StringSeq.allocate
(int additional, StoreContext ctx, ClassMetaData meta) protected void
InverseManager.createInverseRelations
(StoreContext ctx, Object fromRef, Object toRef, FieldMetaData fmd, FieldMetaData[] inverses) Create the inverse relations for all the given inverse fields.DelegatingSeq.current
(StoreContext ctx, ClassMetaData meta) Seq.current
(StoreContext ctx, ClassMetaData cls) Return the current value of the sequence, or null if not available.TimeSeededSeq.current
(StoreContext ctx, ClassMetaData meta) UUIDHexSeq.current
(StoreContext ctx, ClassMetaData meta) UUIDStringSeq.current
(StoreContext ctx, ClassMetaData meta) UUIDType4HexSeq.current
(StoreContext ctx, ClassMetaData meta) UUIDType4StringSeq.current
(StoreContext ctx, ClassMetaData meta) DelegatingSeq.next
(StoreContext ctx, ClassMetaData meta) Seq.next
(StoreContext ctx, ClassMetaData cls) Return the next value in the sequence.TimeSeededSeq.next
(StoreContext ctx, ClassMetaData meta) UUIDHexSeq.next
(StoreContext ctx, ClassMetaData meta) UUIDStringSeq.next
(StoreContext ctx, ClassMetaData meta) UUIDType4HexSeq.next
(StoreContext ctx, ClassMetaData meta) UUIDType4StringSeq.next
(StoreContext ctx, ClassMetaData meta) void
AbstractLockManager.setContext
(StoreContext ctx) void
DelegatingFetchConfiguration.setContext
(StoreContext ctx) void
DelegatingStoreManager.setContext
(StoreContext ctx) void
FetchConfiguration.setContext
(StoreContext ctx) Called automatically by the system to associate the fetch configuration with a context before use.void
FetchConfigurationImpl.setContext
(StoreContext ctx) void
LockManager.setContext
(StoreContext ctx) Set the context this lock manager is associated with.void
StoreManager.setContext
(StoreContext ctx) Set a reference to the corresponding context.protected Object
AbstractPCData.toData
(FieldMetaData fmd, Object val, StoreContext ctx) Transform the given field value to a data value for caching.protected Object
AbstractPCData.toEmbeddedData
(Object val, StoreContext ctx) Return the value to cache for the given embedded PC.protected Object
AbstractPCData.toNestedData
(ValueMetaData vmd, Object val, StoreContext ctx) Transform the given nested value to a cachable value.protected Object
AbstractPCData.toRelationData
(Object val, StoreContext ctx) Return the value to cache for the given object.ModifierConstructorDescriptionCreate a new provider for loading PC objects from the input intoctx
.DetachedValueStateManager
(Object pc, StoreContext ctx) DetachedValueStateManager
(PersistenceCapable pc, ClassMetaData meta, StoreContext ctx) -
Uses of StoreContext in org.apache.openjpa.kernel.exps
Modifier and TypeMethodDescriptionprotected Object
CandidatePath.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) protected Object
Coalesce.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) protected Object
Coalesce.eval
(Object candidate, StoreContext ctx, Object[] params) protected boolean
Exp.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) Evaluate the expression for the given context candidate and original candidate.protected boolean
Exp.eval
(Collection candidates, StoreContext ctx, Object[] params) Evaluate the expression for the given group.protected Object
NullIf.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) protected Object
NullIf.eval
(Object candidate, StoreContext ctx, Object[] params) protected Object
SimpleCase.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) protected Object
SimpleCase.eval
(Object candidate, StoreContext ctx, Object[] params) protected abstract Object
Val.eval
(Object candidate, Object orig, StoreContext ctx, Object[] params) Return this value for the given candidate.protected Collection
Val.eval
(Collection candidates, Object orig, StoreContext ctx, Object[] params) Return a list of values resulting from evaluating each given candidate.AggregateListener.evaluate
(Collection args, Class[] argClasses, Collection candidates, StoreContext ctx) Return the value of this aggregate.final boolean
Exp.evaluate
(Object candidate, Object orig, StoreContext ctx, Object[] params) Evaluate the expression for the given candidate.final boolean
Exp.evaluate
(Collection candidates, StoreContext ctx, Object[] params) Evaluate the expression for the given candidate group.FilterListener.evaluate
(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx) Evaluate the given expression.StringContains.evaluate
(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx) Deprecated.final Object
Val.evaluate
(Object candidate, Object orig, StoreContext ctx, Object[] params) Return this value as a projection on the given candidate.final Object
Val.evaluate
(Collection candidates, Object orig, StoreContext ctx, Object[] params) Return this value as an aggregate projection on the given group of candidates.WildcardMatch.evaluate
(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx) Deprecated.InMemoryExpressionFactory.group
(QueryExpressions exps, List matches, StoreContext ctx, Object[] params) Group the list of matches into a list of lists.protected boolean
InMemoryExpressionFactory.matches
(Exp exp, Object candidate, StoreContext ctx, Object[] params, int i) Recursive method to evaluate the expression for all possible combinations of unbound variables.boolean
InMemoryExpressionFactory.matches
(QueryExpressions exps, Collection group, StoreContext ctx, Object[] params) Return true if the given group matches the having expression.boolean
InMemoryExpressionFactory.matches
(QueryExpressions exps, ClassMetaData type, boolean subs, Object candidate, StoreContext ctx, Object[] params) Tests whether the given candidate matches the given type and this expression.InMemoryExpressionFactory.order
(QueryExpressions exps, List matches, StoreContext ctx, Object[] params) Order the given list of matches on the given value.InMemoryExpressionFactory.project
(QueryExpressions exps, List matches, StoreContext ctx, Object[] params) Create the projections for the given results. -
Uses of StoreContext in org.apache.openjpa.meta
Modifier and TypeMethodDescriptionFieldMetaData.getExternalValue
(Object val, StoreContext ctx) Convert the given field value to its external value through the provided externalizer, or return the value as-is if no externalizer.FieldMetaData.getFieldValue
(Object val, StoreContext ctx) Return the result of passing the given external value through the factory to get the field value. -
Uses of StoreContext in org.apache.openjpa.persistence
ModifierConstructorDescriptionGeneratorImpl
(Seq seq, String name, StoreContext ctx, ClassMetaData meta) Constructor; supply delegate. -
Uses of StoreContext in org.apache.openjpa.slice
Modifier and TypeInterfaceDescriptioninterface
Extension to Broker to allow access tovirtual data store
.Modifier and TypeClassDescriptionclass
A specialized Broker to associate slice identifiers with the StateManagers as they are persisted in a cascade. -
Uses of StoreContext in org.apache.openjpa.util
Modifier and TypeMethodDescriptionstatic Object
Serialization.deserialize
(byte[] bytes, StoreContext ctx) Deserialize an object value from the given bytes.static Object
Serialization.deserialize
(InputStream in, StoreContext ctx) Deserialize an object value from the given stream.static Object
ImplHelper.generateFieldValue
(StoreContext ctx, FieldMetaData fmd) Generate a value for the given metadata, or return null.static Object
ImplHelper.generateIdentityValue
(StoreContext ctx, ClassMetaData meta, int typeCode) Generate a value for the given metadata, or return null.static byte[]
Serialization.serialize
(Object val, StoreContext ctx) Serialize a value that might contain persistent objects.ModifierConstructorDescriptionPersistentObjectInputStream
(InputStream delegate, StoreContext ctx) Constructor; supply source stream and broker to use for persistent object lookups.PersistentObjectOutputStream
(OutputStream delegate, StoreContext ctx) Constructor; supply underlying stream.