public class ExecutionContextThreadedImpl extends ExecutionContextImpl
ExecutionContext.EmbeddedOwnerRelation, ExecutionContext.LifecycleListenercache, l2CacheEnabled, lock, opAssociatedValuesMapByOPOPTION_JTA_AUTOJOIN, OPTION_PASSWORD, OPTION_USERNAME| Constructor and Description | 
|---|
| ExecutionContextThreadedImpl(PersistenceNucleusContext ctx,
                            Object owner,
                            Map<String,Object> options) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addObjectProvider(ObjectProvider op)Method to add the object managed by the specified ObjectProvider to the (L1) cache. | 
| void | attachObject(ObjectProvider ownerOP,
            Object pc,
            boolean sco)Method to attach a persistent detached object. | 
| Object | attachObjectCopy(ObjectProvider ownerOP,
                Object pc,
                boolean sco)Method to attach a persistent detached object returning an attached copy of the object. | 
| void | clearDirty()Method to clear all objects marked as dirty (whether directly or indirectly). | 
| void | clearDirty(ObjectProvider op)Method to clear an object from the list of dirty objects. | 
| void | close()Method to close the context. | 
| void | deleteObject(Object obj)Method to delete an object from the datastore. | 
| void | deleteObjects(Object[] objs)Method to delete an array of objects from the datastore. | 
| void | detachObject(Object obj,
            FetchPlanState state)Method to detach a persistent object without making a copy. | 
| Object | detachObjectCopy(Object pc,
                FetchPlanState state)Detach a copy of the passed persistent object using the provided detach state. | 
| void | enlistInTransaction(ObjectProvider sm)Method to enlist the specified ObjectProvider in the current transaction. | 
| void | evictAllObjects()Method to evict all current objects from L1 cache. | 
| void | evictFromTransaction(ObjectProvider sm)Method to evict the specified ObjectProvider from the current transaction. | 
| void | evictObject(Object obj)Internal method to evict an object from L1 cache. | 
| ObjectProvider | findObjectProvider(Object pc)Method to find the ObjectProvider for an object. | 
| void | flush()Method callable from external APIs for user-management of flushing. | 
| void | flushInternal(boolean flushToDatastore)This method flushes all dirty, new, and deleted instances to the datastore. | 
| Extent | getExtent(Class pcClass,
         boolean subclasses)Extents are collections of datastore objects managed by the datastore,
 not by explicit user operations on collections. | 
| boolean | getMultithreaded()Accessor for whether the object manager is multithreaded. | 
| void | hereIsObjectProvider(ObjectProvider sm,
                    Object pc)Method to add the ObjectProvider for an object to this context's list. | 
| void | makeObjectTransactional(Object obj)Method to make an object transactional. | 
| void | makeObjectTransient(Object obj,
                   FetchPlanState state)Method to migrate an object to transient state. | 
| void | markDirty(ObjectProvider op,
         boolean directUpdate)Method to mark an object (ObjectProvider) as dirty. | 
| Object | persistObject(Object obj,
             boolean merging)Method to make an object persistent. | 
| Object[] | persistObjects(Object[] objs)Method to persist an array of objects to the datastore. | 
| void | processNontransactionalUpdate()Method called when a non-tx update has been performed (via setter call on the persistable object, or via
 use of mutator methods of a field). | 
| void | refreshObject(Object obj)Method to do a refresh of an object, updating it from its
 datastore representation. | 
| void | removeObjectProvider(ObjectProvider op)Method to remove the object managed by the specified ObjectProvider from the cache. | 
| void | replaceObjectId(Object pc,
               Object oldID,
               Object newID)Replace the previous object id for a persistable object with a new one. | 
| void | retrieveObject(Object obj,
              boolean fgOnly)Method to retrieve an object. | 
acquireThreadContextInfo, addInternalFetchGroup, addOperationToQueue, assertActiveTransaction, assertClassPersistable, assertDetachable, assertHasImplementationCreator, assertIsOpen, assertNotDetached, closeCallbackHandler, containsObjectProviderAssociatedValue, deleteObjectInternal, deregisterEmbeddedRelation, deregisterExecutionContextListener, detachAll, evictObjects, exists, findObject, findObject, findObject, findObject, findObjectProvider, findObjectProviderForEmbedded, findObjectProviderOfOwnerForAttachingObject, findObjects, flushOperationsForBackingStore, getApiAdapter, getAttachDetachReferencedObject, getAttachedObjectForId, getBooleanProperty, getCallbackHandler, getClassLoaderResolver, getClassNameForObjectId, getEmbeddedInformationForOwner, getFetchGroupManager, getFetchGroupsWithName, getFetchPlan, getInternalFetchGroup, getIntProperty, getL2CacheableObject, getLevel1Cache, getLevel2CacheRetrieveMode, getLevel2CacheStoreMode, getLock, getLockManager, getManagedObjects, getManagedObjects, getManagedObjects, getManagedObjects, getManageRelations, getManageRelationsChecks, getMetaDataManager, getNucleusContext, getObjectFromCache, getObjectFromLevel1Cache, getObjectFromLevel2Cache, getObjectProviderAssociatedValue, getObjectsFromCache, getObjectsFromLevel2Cache, getObjectsToBeFlushed, getOperationQueue, getOwner, getOwnerInformationForEmbedded, getOwnersForEmbeddedObjectProvider, getProperties, getProperty, getReachabilityAtCommit, getRelationshipManager, getSerializeReadForClass, getStatistics, getStoreManager, getStringProperty, getSupportedProperties, getThreadContextInfo, getTransaction, getTypeManager, hasIdentityInCache, hasPersistenceInformationForClass, initialise, initialiseLevel1Cache, isClosed, isDelayDatastoreOperationsEnabled, isEnlistedInTransaction, isFlushing, isInserting, isManagingRelations, isObjectModifiedInTransaction, isRunningDetachAllOnCommit, makeObjectNontransactional, markFieldsForUpdateInLevel2Cache, newInstance, newObjectId, newObjectId, operationQueueIsActive, performManagedRelationships, persistObjectInternal, persistObjectInternal, persistObjectInternal, postBegin, postCommit, postRollback, preCommit, preRollback, processNontransactionalAtomicChanges, putObjectIntoLevel1Cache, putObjectIntoLevel2Cache, putObjectIntoLevel2CacheInternal, putObjectsIntoLevel2Cache, refreshAllObjects, registerEmbeddedRelation, registerExecutionContextListener, releaseThreadContextInfo, removeEmbeddedOwnerRelation, removeInternalFetchGroup, removeObjectFromLevel1Cache, removeObjectFromLevel2Cache, removeObjectProviderAssociatedValue, setAttachDetachReferencedObject, setLevel2Cache, setObjectProviderAssociatedValue, setProperties, setProperty, transactionCommitted, transactionEnded, transactionFlushed, transactionPreCommit, transactionPreFlush, transactionPreRollBack, transactionReleaseSavepoint, transactionRollbackToSavepoint, transactionRolledBack, transactionSetSavepoint, transactionStartedpublic ExecutionContextThreadedImpl(PersistenceNucleusContext ctx, Object owner, Map<String,Object> options)
ctx - NucleusContextowner - Owner object (PM, EM)options - Any options affecting startuppublic boolean getMultithreaded()
getMultithreaded in interface ExecutionContextgetMultithreaded in class ExecutionContextImplpublic void processNontransactionalUpdate()
ExecutionContextImplprocessNontransactionalUpdate in interface ExecutionContextprocessNontransactionalUpdate in class ExecutionContextImplpublic void enlistInTransaction(ObjectProvider sm)
ExecutionContextImplenlistInTransaction in interface ExecutionContextenlistInTransaction in class ExecutionContextImplsm - The ObjectProviderpublic void evictFromTransaction(ObjectProvider sm)
ExecutionContextImplevictFromTransaction in interface ExecutionContextevictFromTransaction in class ExecutionContextImplsm - The ObjectProviderpublic void addObjectProvider(ObjectProvider op)
ExecutionContextImpladdObjectProvider in interface ExecutionContextaddObjectProvider in class ExecutionContextImplop - The ObjectProviderpublic void removeObjectProvider(ObjectProvider op)
ExecutionContextImplremoveObjectProvider in interface ExecutionContextremoveObjectProvider in class ExecutionContextImplop - The ObjectProviderpublic ObjectProvider findObjectProvider(Object pc)
ExecutionContextImplfindObjectProvider in interface ExecutionContextfindObjectProvider in class ExecutionContextImplpc - The object we are checkingpublic void hereIsObjectProvider(ObjectProvider sm, Object pc)
ExecutionContextImplhereIsObjectProvider in interface ExecutionContexthereIsObjectProvider in class ExecutionContextImplsm - The ObjectProviderpc - The object managed by the ObjectProviderpublic void close()
ExecutionContextImplclose in interface ExecutionContextclose in class ExecutionContextImplpublic void evictObject(Object obj)
ExecutionContextImplevictObject in interface ExecutionContextevictObject in class ExecutionContextImplobj - The objectpublic void refreshObject(Object obj)
ExecutionContextImplrefreshObject in interface ExecutionContextrefreshObject in class ExecutionContextImplobj - The Objectpublic void retrieveObject(Object obj, boolean fgOnly)
ExecutionContextImplretrieveObject in interface ExecutionContextretrieveObject in class ExecutionContextImplobj - The objectfgOnly - Whether to retrieve the current fetch group fields onlypublic Object persistObject(Object obj, boolean merging)
ExecutionContextImplpersistObject in interface ExecutionContextpersistObject in class ExecutionContextImplobj - The objectmerging - Whether this object (and dependents) is being mergedpublic Object[] persistObjects(Object[] objs)
ExecutionContextImplpersistObjects in interface ExecutionContextpersistObjects in class ExecutionContextImplobjs - The objects to persistpublic void deleteObject(Object obj)
ExecutionContextImpldeleteObject in interface ExecutionContextdeleteObject in class ExecutionContextImplobj - The objectpublic void deleteObjects(Object[] objs)
ExecutionContextImpldeleteObjects in interface ExecutionContextdeleteObjects in class ExecutionContextImplobjs - The objectspublic void makeObjectTransient(Object obj, FetchPlanState state)
ExecutionContextImplmakeObjectTransient in interface ExecutionContextmakeObjectTransient in class ExecutionContextImplobj - The objectstate - Object containing the state of the fetch plan process (if any)public void makeObjectTransactional(Object obj)
ExecutionContextImplmakeObjectTransactional in interface ExecutionContextmakeObjectTransactional in class ExecutionContextImplobj - The objectpublic void attachObject(ObjectProvider ownerOP, Object pc, boolean sco)
ExecutionContextImplattachObject in interface ExecutionContextattachObject in class ExecutionContextImplownerOP - ObjectProvider of the owner object that has this in a field that causes this attachpc - The persistable objectsco - Whether the PC object is stored without an identity (embedded/serialised)public Object attachObjectCopy(ObjectProvider ownerOP, Object pc, boolean sco)
ExecutionContextImplattachObjectCopy in interface ExecutionContextattachObjectCopy in class ExecutionContextImplownerOP - ObjectProvider of the owner object that has this in a field that causes this attachpc - The objectsco - Whether it has no identity (second-class object)public void detachObject(Object obj, FetchPlanState state)
ExecutionContextImpldetachObject in interface ExecutionContextdetachObject in class ExecutionContextImplobj - The objectstate - State for the detachment processpublic Object detachObjectCopy(Object pc, FetchPlanState state)
ExecutionContextImpldetachObjectCopy in interface ExecutionContextdetachObjectCopy in class ExecutionContextImplpc - The objectstate - State for the detachment processpublic void clearDirty(ObjectProvider op)
ExecutionContextImplclearDirty in interface ExecutionContextclearDirty in class ExecutionContextImplop - The ObjectProviderpublic void clearDirty()
ExecutionContextImplclearDirty in interface ExecutionContextclearDirty in class ExecutionContextImplpublic void evictAllObjects()
evictAllObjects in interface ExecutionContextevictAllObjects in class ExecutionContextImplpublic void markDirty(ObjectProvider op, boolean directUpdate)
ExecutionContextImplmarkDirty in interface ExecutionContextmarkDirty in class ExecutionContextImplop - ObjectProviderdirectUpdate - Whether the object has had a direct update made on it (if known)public void flush()
ExecutionContextImplflush in interface ExecutionContextflush in class ExecutionContextImplpublic void flushInternal(boolean flushToDatastore)
ExecutionContextImplflushInternal in interface ExecutionContextflushInternal in class ExecutionContextImplflushToDatastore - Whether to ensure any changes reach the datastore
     Otherwise they will be flushed to the datastore manager and leave it to
     decide the opportune moment to actually flush them to the datastorepublic void replaceObjectId(Object pc, Object oldID, Object newID)
ExecutionContextImplreplaceObjectId in interface ExecutionContextreplaceObjectId in class ExecutionContextImplpc - The Persistable objectoldID - the old id it was known bynewID - the new idpublic Extent getExtent(Class pcClass, boolean subclasses)
ExecutionContextImplgetExtent in interface ExecutionContextgetExtent in class ExecutionContextImplpcClass - The class to querysubclasses - Whether to include subclasses in the query.Copyright © 2017. All rights reserved.