Uses of Interface
org.datanucleus.ExecutionContext
-
Packages that use ExecutionContext Package Description org.datanucleus This package provides classes that are typically externally called, whether that means by developers or by other DataNucleus plugins.org.datanucleus.api Provides adapters for different client APIs, like JDO, JPA and so on.org.datanucleus.flush This package provides classes managing the flush process when using MANUAL flush.org.datanucleus.identity Package defining object identity classes.org.datanucleus.metadata Provides classes representing the MetaData for files, packages, classes, fields, containers, etc.org.datanucleus.state Provides classes relating to the life cycle state management of a persistable object.org.datanucleus.store Package handling the storage of classes to the datastore, and the management of the datastore.org.datanucleus.store.connection Package defining the connection to the datastore.org.datanucleus.store.federation Package providing management for federation of datastores.org.datanucleus.store.fieldmanager Package providing managers for fields which give a mechanism for navigating through fields of a class and performing operations based on the type of the field.org.datanucleus.store.query Package providing query language support for datastores.org.datanucleus.store.query.inmemory Package providing the evaluation of queries using an in-memory process with evaluators for JDOQL and JPQL.org.datanucleus.store.schema Package defining the data structure mechanism for the schema of the datastore.org.datanucleus.store.types Package providing basic java type handling for DataNucleus.org.datanucleus.transaction Package providing support specific to transactions for DataNucleus.org.datanucleus.transaction.jta Package providing handlers for JTA transactions -
-
Uses of ExecutionContext in org.datanucleus
Classes in org.datanucleus that implement ExecutionContext Modifier and Type Class Description class
ExecutionContextImpl
Manager for persistence/retrieval of objects within an execution context, equating to the work required by JDO PersistenceManager and JPA EntityManager.class
ExecutionContextThreadedImpl
ExecutionContext to attempt to handle multi-threaded PM/EM cases.Methods in org.datanucleus that return ExecutionContext Modifier and Type Method Description ExecutionContext
ExecutionContextPool. checkOut(Object owner, Map<String,Object> options)
protected ExecutionContext
ExecutionContextPool. create(Object owner, Map<String,Object> options)
ExecutionContext
PersistenceNucleusContext. getExecutionContext(Object owner, Map<String,Object> options)
Method to return an ExecutionContext for use in persistence.ExecutionContext
PersistenceNucleusContextImpl. getExecutionContext(Object owner, Map<String,Object> options)
Methods in org.datanucleus with parameters of type ExecutionContext Modifier and Type Method Description void
ExecutionContextPool. checkIn(ExecutionContext ec)
void
ExecutionContextListener. executionContextClosing(ExecutionContext ec)
Method called when the specified ExecutionContext is closing.void
ExecutionContextPool. expire(ExecutionContext ec)
BeanValidationHandler
PersistenceNucleusContext. getBeanValidationHandler(ExecutionContext ec)
Method to return a handler for bean validation (JSR303).BeanValidationHandler
PersistenceNucleusContextImpl. getBeanValidationHandler(ExecutionContext ec)
String
PersistenceNucleusContext. getCurrentUser(ExecutionContext ec)
Accessor for the current user for the supplied ExecutionContext.String
PersistenceNucleusContextImpl. getCurrentUser(ExecutionContext ec)
String
PersistenceNucleusContext. getTenantId(ExecutionContext ec)
Accessor for the tenant id for the ExecutionContext.String
PersistenceNucleusContextImpl. getTenantId(ExecutionContext ec)
String[]
PersistenceNucleusContext. getTenantReadIds(ExecutionContext ec)
Accessor for the ids of the tenants that should be included in any read operations.String[]
PersistenceNucleusContextImpl. getTenantReadIds(ExecutionContext ec)
void
ExecutionContext.LifecycleListener. preClose(ExecutionContext ec)
Invoked before closing the ExecutionContextboolean
ExecutionContextPool. validate(ExecutionContext ec)
Constructors in org.datanucleus with parameters of type ExecutionContext Constructor Description BeanValidationHandler(ExecutionContext ec, Object validatorFactory)
Constructor for a validation handler.FetchPlan(ExecutionContext ec, ClassLoaderResolver clr)
Constructor.ReachabilityAtCommitHandler(ExecutionContext ec)
Constructor for a reachability-at-commit handler. -
Uses of ExecutionContext in org.datanucleus.api
Methods in org.datanucleus.api that return ExecutionContext Modifier and Type Method Description ExecutionContext
ApiAdapter. getExecutionContext(Object pc)
Method to return the ExecutionContext (if any) associated with the passed object. -
Uses of ExecutionContext in org.datanucleus.flush
Methods in org.datanucleus.flush with parameters of type ExecutionContext Modifier and Type Method Description List<NucleusOptimisticException>
FlushNonReferential. execute(ExecutionContext ec, Collection<DNStateManager> primaryOPs, Collection<DNStateManager> secondaryOPs, OperationQueue opQueue)
List<NucleusOptimisticException>
FlushOrdered. execute(ExecutionContext ec, Collection<DNStateManager> primaryOPs, Collection<DNStateManager> secondaryOPs, OperationQueue opQueue)
List<NucleusOptimisticException>
FlushProcess. execute(ExecutionContext ec, Collection<DNStateManager> primarySMs, Collection<DNStateManager> secondarySMs, OperationQueue opQueue)
Execute the flush.List<NucleusOptimisticException>
FlushNonReferential. flushDeleteInsertUpdateGrouped(Set<DNStateManager> smsToFlush, ExecutionContext ec)
Method that does the flushing of the passed StateManagers, grouping them into all DELETEs, then all INSERTs, finally all UPDATEs.void
OperationQueue. processOperationsForNoBackingStoreSCOs(ExecutionContext ec)
Method to process all SCO operations where the SCOs don't use a backing store. -
Uses of ExecutionContext in org.datanucleus.identity
Methods in org.datanucleus.identity with parameters of type ExecutionContext Modifier and Type Method Description static Object
IdentityUtils. getApplicationIdentityForResultSetRow(ExecutionContext ec, AbstractClassMetaData cmd, Class pcClass, boolean inheritanceCheck, FieldManager resultsFM)
Method to return the object application identity for a row of the result set.Object
IdentityStringTranslator. getIdentity(ExecutionContext ec, String stringId)
Method to translate the object into the identity.Object
XcaliaIdentityStringTranslator. getIdentity(ExecutionContext ec, String stringId)
Object
IdentityKeyTranslator. getKey(ExecutionContext ec, Class cls, Object key)
Method to translate the object into the identity.static Object
IdentityUtils. getObjectFromIdString(String idStr, AbstractClassMetaData cmd, ExecutionContext ec, boolean checkInheritance)
Convenience method to find an object given a string form of its identity, and the metadata for the class (or a superclass).static Object
IdentityUtils. getObjectFromIdString(String idStr, AbstractMemberMetaData mmd, FieldRole fieldRole, ExecutionContext ec, boolean checkInheritance)
Convenience method to find an object given a string form of its identity, and the metadata for the member.static Object
IdentityUtils. getObjectFromPersistableIdentity(String persistableId, AbstractClassMetaData cmd, ExecutionContext ec)
Convenience method to find an object given a string form of its identity, and the metadata for the class (or a superclass). -
Uses of ExecutionContext in org.datanucleus.metadata
Methods in org.datanucleus.metadata with parameters of type ExecutionContext Modifier and Type Method Description static List<AbstractClassMetaData>
MetaDataUtils. getMetaDataForCandidates(Class cls, boolean subclasses, ExecutionContext ec)
Convenience method to return the class metadata for the candidate and optionally its subclasses.boolean
MetaDataUtils. storesFCO(AbstractMemberMetaData mmd, ExecutionContext ec)
Convenience method that returns if a member stores a First-Class object (FCO).boolean
MetaDataUtils. storesPersistable(AbstractMemberMetaData mmd, ExecutionContext ec)
Convenience method that returns if a field stores a persistable object. -
Uses of ExecutionContext in org.datanucleus.state
Fields in org.datanucleus.state declared as ExecutionContext Modifier and Type Field Description protected ExecutionContext
StateManagerImpl. myEC
The ExecutionContext for this StateManagerMethods in org.datanucleus.state that return ExecutionContext Modifier and Type Method Description ExecutionContext
DNStateManager. getExecutionContext()
ExecutionContext
StateManagerImpl. getExecutionContext()
Methods in org.datanucleus.state with parameters of type ExecutionContext Modifier and Type Method Description protected void
RelationshipManagerImpl. checkManyToManyBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to check consistency of the passed field as M-N.protected void
RelationshipManagerImpl. checkManyToOneBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to check the consistency of the passed field as N-1.protected void
RelationshipManagerImpl. checkOneToManyBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to check the consistency of the passed field as 1-N.protected void
RelationshipManagerImpl. checkOneToOneBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to check the consistency of the passed field as 1-1.DNStateManager
StateManagerPool. checkOut(ExecutionContext ec, AbstractClassMetaData cmd)
void
DNStateManager. connect(ExecutionContext ec, AbstractClassMetaData cmd)
Method to (re)connect this StateManager to the specified ExecutionContext and object type.void
ReferentialStateManagerImpl. connect(ExecutionContext ec, AbstractClassMetaData cmd)
void
StateManagerImpl. connect(ExecutionContext ec, AbstractClassMetaData cmd)
protected DNStateManager
StateManagerPool. create(ExecutionContext ec, AbstractClassMetaData cmd)
protected DNStateManager
StateManagerFactoryImpl. getStateManager(ExecutionContext ec, AbstractClassMetaData cmd)
<T> DNStateManager<T>
StateManagerFactory. newForCachedPC(ExecutionContext ec, Object id, CachedPC cachedPC)
Constructor to create a StateManager for an object taken from the L2 cache with the specified id.<T> DNStateManager<T>
StateManagerFactoryImpl. newForCachedPC(ExecutionContext ec, Object id, CachedPC cachedPC)
<T> DNStateManager<T>
StateManagerFactory. newForDetached(ExecutionContext ec, T pc, Object id, Object version)
Constructor for creating StateManager instances to manage persistable objects in detached state.<T> DNStateManager<T>
StateManagerFactoryImpl. newForDetached(ExecutionContext ec, T pc, Object id, Object version)
DNStateManager
StateManagerFactory. newForEmbedded(ExecutionContext ec, AbstractClassMetaData cmd, DNStateManager ownerSM, int ownerMemberNumber, PersistableObjectType ownerMemberCmpt)
Constructs a StateManager for an object of the specified type, creating the PC object to hold the values where this object will be EMBEDDED/SERIALISED into another persistable object.<T> DNStateManager<T>
StateManagerFactory. newForEmbedded(ExecutionContext ec, T pc, boolean copyPc, DNStateManager ownerSM, int ownerMemberNumber, PersistableObjectType ownerMemberCmpt)
Constructs a StateManager to manage a persistable instance that will be EMBEDDED/SERIALISED into another persistable object.DNStateManager
StateManagerFactoryImpl. newForEmbedded(ExecutionContext ec, AbstractClassMetaData cmd, DNStateManager ownerSM, int ownerMemberNumber, PersistableObjectType objectType)
<T> DNStateManager<T>
StateManagerFactoryImpl. newForEmbedded(ExecutionContext ec, T pc, boolean copyPc, DNStateManager ownerSM, int ownerMemberNumber, PersistableObjectType objectType)
<T> DNStateManager<T>
StateManagerFactory. newForHollow(ExecutionContext ec, Class<T> pcClass, Object id)
Constructs a StateManager to manage a hollow instance having the given object ID.<T> DNStateManager<T>
StateManagerFactory. newForHollow(ExecutionContext ec, Class<T> pcClass, Object id, FieldValues fv)
Constructs a StateManager to manage a recently populated hollow instance having the given object ID and the given field values.<T> DNStateManager<T>
StateManagerFactoryImpl. newForHollow(ExecutionContext ec, Class<T> pcClass, Object id)
<T> DNStateManager<T>
StateManagerFactoryImpl. newForHollow(ExecutionContext ec, Class<T> pcClass, Object id, FieldValues fv)
<T> DNStateManager<T>
StateManagerFactory. newForHollowPopulatedAppId(ExecutionContext ec, Class<T> pcClass, FieldValues fv)
Deprecated.Use newForHollowPopulated instead<T> DNStateManager<T>
StateManagerFactoryImpl. newForHollowPopulatedAppId(ExecutionContext ec, Class<T> pcClass, FieldValues fv)
Deprecated.<T> DNStateManager<T>
StateManagerFactory. newForHollowPreConstructed(ExecutionContext ec, Object id, T pc)
Constructs a StateManager to manage a hollow instance having the given object ID.<T> DNStateManager<T>
StateManagerFactoryImpl. newForHollowPreConstructed(ExecutionContext ec, Object id, T pc)
<T> DNStateManager<T>
StateManagerFactory. newForPersistentClean(ExecutionContext ec, Object id, T pc)
Constructs a StateManager to manage the specified persistent instance having the given object ID.<T> DNStateManager<T>
StateManagerFactoryImpl. newForPersistentClean(ExecutionContext ec, Object id, T pc)
<T> DNStateManager<T>
StateManagerFactory. newForPersistentNew(ExecutionContext ec, T pc, FieldValues fv)
Constructs a StateManager to manage a transient instance that is becoming newly persistent.<T> DNStateManager<T>
StateManagerFactoryImpl. newForPersistentNew(ExecutionContext ec, T pc, FieldValues preInsertChanges)
<T> DNStateManager<T>
StateManagerFactory. newForPNewToBeDeleted(ExecutionContext ec, T pc)
Constructor for creating StateManager instances to manage persistable objects that are not persistent yet are about to be deleted.<T> DNStateManager<T>
StateManagerFactoryImpl. newForPNewToBeDeleted(ExecutionContext ec, T pc)
<T> DNStateManager<T>
StateManagerFactory. newForTransactionalTransient(ExecutionContext ec, T pc)
Constructs a StateManager to manage a transactional-transient instance.<T> DNStateManager<T>
StateManagerFactoryImpl. newForTransactionalTransient(ExecutionContext ec, T pc)
protected void
RelationshipManagerImpl. processManyToManyBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to process all M-N bidirectional fields.protected void
RelationshipManagerImpl. processManyToOneBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to process all N-1 bidirectional fields.protected void
RelationshipManagerImpl. processOneToManyBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to process all 1-N bidirectional fields.protected void
RelationshipManagerImpl. processOneToOneBidirectionalRelation(AbstractMemberMetaData mmd, ClassLoaderResolver clr, ExecutionContext ec, List<org.datanucleus.state.RelationshipManagerImpl.RelationChange> changes)
Method to process all 1-1 bidir fields.Constructors in org.datanucleus.state with parameters of type ExecutionContext Constructor Description LockManagerImpl(ExecutionContext ec)
ReferentialStateManagerImpl(ExecutionContext ec, AbstractClassMetaData cmd)
Constructor for object of specified type managed by the provided ExecutionContext.StateManagerImpl(ExecutionContext ec, AbstractClassMetaData cmd)
Constructor for object of specified type managed by the provided ExecutionContext. -
Uses of ExecutionContext in org.datanucleus.store
Fields in org.datanucleus.store declared as ExecutionContext Modifier and Type Field Description protected ExecutionContext
NucleusSequenceImpl. ec
execution context.Methods in org.datanucleus.store with parameters of type ExecutionContext Modifier and Type Method Description default void
StorePersistenceHandler. batchEnd(ExecutionContext ec, StorePersistenceHandler.PersistenceBatchType type)
Signal that the current batch of operations are ending for the specified ExecutionContext.default void
StorePersistenceHandler. batchStart(ExecutionContext ec, StorePersistenceHandler.PersistenceBatchType batchType)
Signal that a batch of operations are starting for the specified ExecutionContext.Object
StorePersistenceHandler. findObject(ExecutionContext ec, Object id)
Method to find a persistable object with the specified id from the datastore, if the StoreManager supports this operation (optional).Object
AbstractPersistenceHandler. findObjectForUnique(ExecutionContext ec, AbstractClassMetaData cmd, String[] memberNames, Object[] values)
Object
StorePersistenceHandler. findObjectForUnique(ExecutionContext ec, AbstractClassMetaData cmd, String[] memberNames, Object[] values)
Method to find the object with the specified value(s) for the member(s) of the specified type.default Object[]
StorePersistenceHandler. findObjects(ExecutionContext ec, Object[] ids)
Method to find an array of objects with the specified identities from the datastore.String
AbstractStoreManager. getClassNameForObjectID(Object id, ClassLoaderResolver clr, ExecutionContext ec)
String
StoreManager. getClassNameForObjectID(Object id, ClassLoaderResolver clr, ExecutionContext ec)
Returns the class corresponding to the given object identity.<T> Extent<T>
AbstractStoreManager. getExtent(ExecutionContext ec, Class<T> c, boolean subclasses)
<T> Extent<T>
StoreManager. getExtent(ExecutionContext ec, Class<T> c, boolean subclasses)
Interface to getting an Extent for a class.protected Object
AbstractStoreManager. getNextValueForValueGenerator(ValueGenerator generator, ExecutionContext ec)
Accessor for the next value from the specified ValueGenerator.NucleusConnection
AbstractStoreManager. getNucleusConnection(ExecutionContext ec)
NucleusConnection
StoreManager. getNucleusConnection(ExecutionContext ec)
Method to return a connection to the user for the ExecutionContext.default NucleusSequence
StoreManager. getNucleusSequence(ExecutionContext ec, SequenceMetaData seqmd)
Method to return a datastore sequence for this datastore matching the passed sequence MetaData.Object
AbstractStoreManager. getValueGenerationStrategyValue(ExecutionContext ec, AbstractClassMetaData cmd, AbstractMemberMetaData mmd)
Object
StoreManager. getValueGenerationStrategyValue(ExecutionContext ec, AbstractClassMetaData cmd, AbstractMemberMetaData mmd)
Method to retrieve the value for a value generation strategy for a particular field or datastore-identity.Query
StoreManager. newQuery(String language, ExecutionContext ec)
Method to return a new query, for the specified language and ExecutionContext.Query
StoreManager. newQuery(String language, ExecutionContext ec, String queryString)
Method to return a new query, for the specified language and ExecutionContext, using the specified query string.Query
StoreManager. newQuery(String language, ExecutionContext ec, Query q)
Method to return a new query, for the specified language and ExecutionContext, using the specified existing query to copy from.default void
StoreManager. transactionCommitted(ExecutionContext ec)
Method to inform the StoreManager that a transaction has committed for the specified execution context.default void
StoreManager. transactionRolledBack(ExecutionContext ec)
Method to inform the StoreManager that a transaction has rolled back for the specified execution context.default void
StoreManager. transactionStarted(ExecutionContext ec)
Method to inform the StoreManager that a transaction has started for the specified execution context.boolean
AbstractStoreManager. useBackedSCOWrapperForMember(AbstractMemberMetaData mmd, ExecutionContext ec)
boolean
StoreManager. useBackedSCOWrapperForMember(AbstractMemberMetaData mmd, ExecutionContext ec)
Method to return whether the specified member should use a backed SCO wrapper.Constructors in org.datanucleus.store with parameters of type ExecutionContext Constructor Description NucleusSequenceImpl(ExecutionContext objectMgr, StoreManager storeMgr, SequenceMetaData seqmd)
Constructor. -
Uses of ExecutionContext in org.datanucleus.store.connection
Methods in org.datanucleus.store.connection with parameters of type ExecutionContext Modifier and Type Method Description void
ConnectionManager. closeAllConnections(ExecutionContext ec)
Method to close all pooled connections for the specified ExecutionContext.void
ConnectionManagerImpl. closeAllConnections(ExecutionContext ec)
ManagedConnection
ConnectionFactory. createManagedConnection(ExecutionContext ec, Map<String,Object> transactionOptions)
Create the ManagedConnection.ManagedConnection
ConnectionManager. getConnection(boolean primary, ExecutionContext ec, Transaction txn)
Accessor for a connection from the specified factory, for the specified ExecutionContext dependent on whether the connection will be enlisted.default ManagedConnection
ConnectionManager. getConnection(ExecutionContext ec)
Accessor for a connection for the specified ExecutionContext.ManagedConnection
ConnectionManager. getConnection(ExecutionContext ec, Map options)
Accessor for a connection for the specified ExecutionContext.ManagedConnection
ConnectionManagerImpl. getConnection(boolean primary, ExecutionContext ec, Transaction txn)
ManagedConnection
ConnectionManagerImpl. getConnection(ExecutionContext ec, Map options)
protected ManagedConnection
ConnectionManagerImpl. getManagedConnection(boolean primary, ExecutionContext ec)
Get a ManagedConnection from the cache.protected void
ConnectionManagerImpl. putManagedConnection(boolean primary, ExecutionContext ec, ManagedConnection mconn)
Put a ManagedConnection into the cache.protected void
ConnectionManagerImpl. removeManagedConnection(boolean primary, ExecutionContext ec)
Method to remove the ManagedConnection from the cache. -
Uses of ExecutionContext in org.datanucleus.store.federation
Constructors in org.datanucleus.store.federation with parameters of type ExecutionContext Constructor Description FederatedJDOQLQuery(StoreManager storeMgr, ExecutionContext ec)
Constructs a new query instance that uses the given execution context.FederatedJDOQLQuery(StoreManager storeMgr, ExecutionContext ec, String query)
Constructor for a JDOQL query where the query is specified using the "Single-String" format.FederatedJDOQLQuery(StoreManager storeMgr, ExecutionContext ec, FederatedJDOQLQuery q)
Constructs a new query instance having the same criteria as the given query. -
Uses of ExecutionContext in org.datanucleus.store.fieldmanager
Fields in org.datanucleus.store.fieldmanager declared as ExecutionContext Modifier and Type Field Description protected ExecutionContext
AbstractFetchFieldManager. ec
protected ExecutionContext
AbstractStoreFieldManager. ec
Constructors in org.datanucleus.store.fieldmanager with parameters of type ExecutionContext Constructor Description AbstractFetchFieldManager(ExecutionContext ec, AbstractClassMetaData cmd)
Constructor to use when creating new objects of the specified type, say from a query.AbstractStoreFieldManager(ExecutionContext ec, AbstractClassMetaData cmd, boolean insert)
-
Uses of ExecutionContext in org.datanucleus.store.query
Fields in org.datanucleus.store.query declared as ExecutionContext Modifier and Type Field Description protected ExecutionContext
AbstractCandidateLazyLoadList. ec
ExecutionContext.protected ExecutionContext
AbstractExtent. ec
ExecutionContextprotected ExecutionContext
Query. ec
Methods in org.datanucleus.store.query that return ExecutionContext Modifier and Type Method Description ExecutionContext
AbstractExtent. getExecutionContext()
Accessor for the owning execution context.ExecutionContext
DefaultCandidateExtent. getExecutionContext()
ExecutionContext
Extent. getExecutionContext()
ExecutionContext
Query. getExecutionContext()
Accessor for the Execution Context associated with this Query.Methods in org.datanucleus.store.query with parameters of type ExecutionContext Modifier and Type Method Description void
Query. executionContextClosing(ExecutionContext ec)
static List
QueryUtils. orderCandidates(List candidates, Class type, String ordering, ExecutionContext ec, ClassLoaderResolver clr)
Convenience method to in-memory order the candidates, using the ordering supplied.static List
QueryUtils. orderCandidates(List candidates, Class type, String ordering, ExecutionContext ec, ClassLoaderResolver clr, String queryLanguage)
Convenience method to in-memory order the candidates, using the ordering supplied.static List
QueryUtils. orderCandidates(List candidates, Expression[] ordering, Map state, String candidateAlias, ExecutionContext ec, ClassLoaderResolver clr, Map parameterValues, Imports imports, String queryLanguage)
Convenience method to order the input List of objects to the ordering defined by the compilation.Constructors in org.datanucleus.store.query with parameters of type ExecutionContext Constructor Description AbstractCandidateLazyLoadList(Class cls, boolean subclasses, ExecutionContext ec, String cacheType)
AbstractExtent(ExecutionContext ec, Class<T> cls, boolean subclasses, AbstractClassMetaData cmd)
Constructor.AbstractJavaQuery(StoreManager storeMgr, ExecutionContext ec)
Constructor for a Java-based query.AbstractJDOQLQuery(StoreManager storeMgr, ExecutionContext ec)
Constructor.AbstractJDOQLQuery(StoreManager storeMgr, ExecutionContext ec, String query)
Constructor for a JDOQL query where the query is specified using the "Single-String" format.AbstractJDOQLQuery(StoreManager storeMgr, ExecutionContext ec, AbstractJDOQLQuery q)
Constructs a new query instance having the same criteria as the given query.AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec)
Constructor.AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec, String query)
Constructor for a JPQL query where the query is specified using the "Single-String" format.AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec, AbstractJPQLQuery q)
Constructs a new query instance having the same criteria as the given query.AbstractStoredProcedureQuery(StoreManager storeMgr, ExecutionContext ec, String procName)
Constructs a new query instance having the same criteria as the given query.AbstractStoredProcedureQuery(StoreManager storeMgr, ExecutionContext ec, AbstractStoredProcedureQuery query)
Constructs a new query instance from the existing query.DefaultCandidateExtent(ExecutionContext ec, Class<T> cls, boolean subclasses, AbstractClassMetaData cmd)
Constructor.Query(StoreManager storeMgr, ExecutionContext ec)
Constructs a new query instance that uses the given ExecutionContext. -
Uses of ExecutionContext in org.datanucleus.store.query.inmemory
Constructors in org.datanucleus.store.query.inmemory with parameters of type ExecutionContext Constructor Description InMemoryExpressionEvaluator(ExecutionContext ec, Map params, Map<String,Object> state, Imports imports, ClassLoaderResolver clr, String candidateAlias, String queryLang)
Constructor for an in-memory evaluator. -
Uses of ExecutionContext in org.datanucleus.store.schema
Methods in org.datanucleus.store.schema with parameters of type ExecutionContext Modifier and Type Method Description String
MultiTenancyProvider. getTenantId(ExecutionContext ec)
Return the tenant id for the current tenant (for use in all WRITE operations).String[]
MultiTenancyProvider. getTenantReadIds(ExecutionContext ec)
Return the tenant id(s) that the current tenant can view (for use in all READ operations). -
Uses of ExecutionContext in org.datanucleus.store.types
Methods in org.datanucleus.store.types with parameters of type ExecutionContext Modifier and Type Method Description static boolean
SCOUtils. detachAsWrapped(ExecutionContext ec)
Convenience accessor for whether to detach SCO objects as wrapped.static void
SCOUtils. detachCopyForCollection(ExecutionContext ec, Object[] elements, FetchPlanState state, Collection detached)
Convenience method to detach copies (recursively) of all elements for a collection field.static void
SCOUtils. detachCopyForMap(ExecutionContext ec, Set entries, FetchPlanState state, Map detached)
Convenience method to detach copies (recursively) of all elements for a map field.static boolean
SCOUtils. validateObjectForWriting(ExecutionContext ec, Object object, FieldValues fieldValues)
Method to check if an object to be stored in a SCO container is already persistent, or is managed by a different ExecutionContext. -
Uses of ExecutionContext in org.datanucleus.transaction
Fields in org.datanucleus.transaction declared as ExecutionContext Modifier and Type Field Description protected ExecutionContext
TransactionImpl. ec
Methods in org.datanucleus.transaction with parameters of type ExecutionContext Modifier and Type Method Description void
ResourcedTransactionManager. begin(ExecutionContext ec)
void
ResourcedTransactionManager. commit(ExecutionContext ec)
ResourcedTransaction
ResourcedTransactionManager. getTransaction(ExecutionContext ec)
void
ResourcedTransactionManager. resume(ExecutionContext ec, ResourcedTransaction tx)
void
ResourcedTransactionManager. rollback(ExecutionContext ec)
void
ResourcedTransactionManager. setRollbackOnly(ExecutionContext ec)
void
ResourcedTransactionManager. setTransactionTimeout(ExecutionContext ec, int millis)
ResourcedTransaction
ResourcedTransactionManager. suspend(ExecutionContext ec)
Constructors in org.datanucleus.transaction with parameters of type ExecutionContext Constructor Description TransactionImpl(ExecutionContext ec, PropertyStore properties)
Constructor for a transaction for the specified ExecutionContext. -
Uses of ExecutionContext in org.datanucleus.transaction.jta
Constructors in org.datanucleus.transaction.jta with parameters of type ExecutionContext Constructor Description JTAJCATransactionImpl(ExecutionContext ec, PropertyStore properties)
Constructor.JTATransactionImpl(ExecutionContext ec, boolean autoJoin, PropertyStore properties)
Constructor.
-