Uses of Interface
org.datanucleus.state.DNStateManager
-
Packages that use DNStateManager 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.cache This package provides classes implementing L1/L2 persistable object caching within DataNucleus.org.datanucleus.flush This package provides classes managing the flush process when using MANUAL flush.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.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.types Package providing basic java type handling for DataNucleus.org.datanucleus.store.types.scostore Package providing backing store definitions for (SCO) types that need a backing store.org.datanucleus.store.types.wrappers Provides implementations of the "simple" wrappers for the mutable Second Class Objects (SCO's) supported by DataNucleus, so that we can intercept calls that will mutate the object.org.datanucleus.store.types.wrappers.backed Provides implementations of the "backed" wrappers for the mutable Second Class Objects (SCO's) that are supported. -
-
Uses of DNStateManager in org.datanucleus
Fields in org.datanucleus declared as DNStateManager Modifier and Type Field Description protected DNStateManagerExecutionContext.EmbeddedOwnerRelation. embeddedSMprotected DNStateManagerExecutionContext.EmbeddedOwnerRelation. ownerSMFields in org.datanucleus with type parameters of type DNStateManager Modifier and Type Field Description protected Map<DNStateManager,Map<?,?>>ExecutionContextImpl. stateManagerAssociatedValuesMapMap of associated values per StateManager.Methods in org.datanucleus that return DNStateManager Modifier and Type Method Description DNStateManagerExecutionContext. findStateManager(Object pc)Method to find StateManager for the passed persistable object when it is managed by this manager.DNStateManagerExecutionContext. findStateManager(Object pc, boolean persist)Method to find StateManager for the passed persistable object when it is managed by this manager, and if not yet persistent to persist it and return the assigned StateManager.DNStateManagerExecutionContextImpl. findStateManager(Object pc)Method to return StateManager for an object (if managed).DNStateManagerExecutionContextImpl. findStateManager(Object pc, boolean persist)Find StateManager for the specified object, persisting it if required and assigning a StateManager if doing soDNStateManagerExecutionContextThreadedImpl. findStateManager(Object pc)DNStateManagerExecutionContext. findStateManagerForEmbedded(Object value, DNStateManager owner, AbstractMemberMetaData mmd, PersistableObjectType objectType)Method to find StateManager for the passed embedded persistable object.DNStateManagerExecutionContextImpl. findStateManagerForEmbedded(Object value, DNStateManager ownerSM, AbstractMemberMetaData mmd, PersistableObjectType objectType)DNStateManagerExecutionContext. findStateManagerOfOwnerForAttachingObject(Object pc)DNStateManagerExecutionContextImpl. findStateManagerOfOwnerForAttachingObject(Object pc)DNStateManagerExecutionContext.EmbeddedOwnerRelation. getEmbeddedSM()DNStateManagerExecutionContext. getOwnerForEmbeddedStateManager(DNStateManager embSM)Accessor for the owner StateManager for the provided embedded StateManager.DNStateManagerExecutionContextImpl. getOwnerForEmbeddedStateManager(DNStateManager embSM)DNStateManagerExecutionContext.EmbeddedOwnerRelation. getOwnerSM()Methods in org.datanucleus that return types with arguments of type DNStateManager Modifier and Type Method Description List<DNStateManager>ExecutionContext. getObjectsToBeFlushed()Convenience method to inspect the list of objects with outstanding changes to flush.List<DNStateManager>ExecutionContextImpl. getObjectsToBeFlushed()Convenience method to inspect the list of objects with outstanding changes to flush.List<DNStateManager>ExecutionContextThreadedImpl. getObjectsToBeFlushed()Methods in org.datanucleus with parameters of type DNStateManager Modifier and Type Method Description voidManagedRelationsHandler. addRelationshipManagerForStateManager(DNStateManager sm, RelationshipManager relMgr)voidExecutionContext. addStateManagerToCache(DNStateManager sm)Method to add the object managed by the specified StateManager to the cache.voidExecutionContextImpl. addStateManagerToCache(DNStateManager sm)Method to add the object managed by the specified StateManager to the (L1) cache.voidExecutionContextThreadedImpl. addStateManagerToCache(DNStateManager sm)voidExecutionContext. attachObject(DNStateManager ownerSM, Object pc, boolean sco)Method to attach a persistent detached object.voidExecutionContextImpl. attachObject(DNStateManager ownerSM, Object pc, boolean sco)voidExecutionContextThreadedImpl. attachObject(DNStateManager ownerSM, Object pc, boolean sco)<T> TExecutionContext. attachObjectCopy(DNStateManager ownerSM, T pc, boolean sco)Method to attach a persistent detached object returning an attached copy of the object.<T> TExecutionContextImpl. attachObjectCopy(DNStateManager ownerSM, T pc, boolean sco)ObjectExecutionContextThreadedImpl. attachObjectCopy(DNStateManager ownerSM, Object pc, boolean sco)voidExecutionContext. clearDirty(DNStateManager sm)Mark the specified StateManager as clean.voidExecutionContextImpl. clearDirty(DNStateManager sm)Method to clear an object from the list of dirty objects.voidExecutionContextThreadedImpl. clearDirty(DNStateManager sm)booleanExecutionContext. containsStateManagerAssociatedValue(DNStateManager sm, Object key)booleanExecutionContextImpl. containsStateManagerAssociatedValue(DNStateManager sm, Object key)voidExecutionContext. enlistInTransaction(DNStateManager sm)Method to enlist the specified StateManager in the current transaction.voidExecutionContextImpl. enlistInTransaction(DNStateManager sm)voidExecutionContextThreadedImpl. enlistInTransaction(DNStateManager sm)voidExecutionContext. evictFromTransaction(DNStateManager sm)Method to evict the specified StateManager from the current transaction.voidExecutionContextImpl. evictFromTransaction(DNStateManager sm)voidExecutionContextThreadedImpl. evictFromTransaction(DNStateManager sm)DNStateManagerExecutionContext. findStateManagerForEmbedded(Object value, DNStateManager owner, AbstractMemberMetaData mmd, PersistableObjectType objectType)Method to find StateManager for the passed embedded persistable object.DNStateManagerExecutionContextImpl. findStateManagerForEmbedded(Object value, DNStateManager ownerSM, AbstractMemberMetaData mmd, PersistableObjectType objectType)voidExecutionContext. flushOperationsForBackingStore(Store backingStore, DNStateManager sm)Method to flush all queued operations for the specified backing store (if any).voidExecutionContextImpl. flushOperationsForBackingStore(Store backingStore, DNStateManager sm)ObjectExecutionContext. getAttachDetachReferencedObject(DNStateManager sm)Access a referenced object for this StateManager during the attach/detach process.ObjectExecutionContextImpl. getAttachDetachReferencedObject(DNStateManager sm)List<ExecutionContext.EmbeddedOwnerRelation>ExecutionContext. getEmbeddedInformationForOwner(DNStateManager ownerSM)Accessor for the relations for the specified embedded StateManager where it is embedded.List<ExecutionContext.EmbeddedOwnerRelation>ExecutionContextImpl. getEmbeddedInformationForOwner(DNStateManager ownerSM)protected CachedPCExecutionContextImpl. getL2CacheableObject(DNStateManager sm, CachedPC currentCachedPC)Convenience method to convert the object managed by StateManager into a form suitable for caching in an L2 cache.DNStateManagerExecutionContext. getOwnerForEmbeddedStateManager(DNStateManager embSM)Accessor for the owner StateManager for the provided embedded StateManager.DNStateManagerExecutionContextImpl. getOwnerForEmbeddedStateManager(DNStateManager embSM)ExecutionContext.EmbeddedOwnerRelationExecutionContext. getOwnerInformationForEmbedded(DNStateManager embSM)Accessor for the owner relation for the specified embedded StateManager where it is embedded.ExecutionContext.EmbeddedOwnerRelationExecutionContextImpl. getOwnerInformationForEmbedded(DNStateManager embSM)RelationshipManagerExecutionContext. getRelationshipManager(DNStateManager sm)Accessor for the RelationshipManager for the provided StateManager.RelationshipManagerExecutionContextImpl. getRelationshipManager(DNStateManager sm)Method to return the RelationshipManager for StateManager.RelationshipManagerManagedRelationsHandler. getRelationshipManagerForStateManager(DNStateManager sm)Method to return the RelationshipManager for the specified StateManager.ObjectExecutionContext. getStateManagerAssociatedValue(DNStateManager sm, Object key)ObjectExecutionContextImpl. getStateManagerAssociatedValue(DNStateManager sm, Object key)voidExecutionContext. markDirty(DNStateManager sm, boolean directUpdate)Mark the specified StateManager as dirtyvoidExecutionContextImpl. markDirty(DNStateManager sm, boolean directUpdate)Method to mark an object (StateManager) as dirty.voidExecutionContextThreadedImpl. markDirty(DNStateManager sm, boolean directUpdate)<T> TExecutionContext. persistObjectInternal(T pc, FieldValues preInsertChanges, PersistableObjectType objectType, DNStateManager ownerSM, int ownerFieldNum)Method to make an object persistent which should be called from INTERNAL (DataNucleus) calls only.<T> TExecutionContextImpl. persistObjectInternal(T obj, FieldValues preInsertChanges, PersistableObjectType objectType, DNStateManager ownerSM, int ownerFieldNum)voidExecutionContext. putObjectIntoLevel1Cache(DNStateManager sm)Method to put a Persistable object associated to StateManager into the L1 cache.voidExecutionContextImpl. putObjectIntoLevel1Cache(DNStateManager sm)Convenience method to add an object to the L1 cache.voidExecutionContext. putObjectIntoLevel2Cache(DNStateManager sm, boolean updateIfPresent)Method to add/update the managed object into the L2 cache as long as it isn't modified in the current transaction.voidExecutionContextImpl. putObjectIntoLevel2Cache(DNStateManager sm, boolean updateIfPresent)protected voidExecutionContextImpl. putObjectIntoLevel2CacheInternal(DNStateManager sm, boolean updateIfPresent)Convenience method to add/update an object in the L2 cache.ExecutionContext.EmbeddedOwnerRelationExecutionContext. registerEmbeddedRelation(DNStateManager ownerSM, int ownerMemberNum, PersistableObjectType objectType, DNStateManager embSM)Method to register an embedded relation for the specified member of the owner StateManager where the embedded StateManager is stored.ExecutionContext.EmbeddedOwnerRelationExecutionContextImpl. registerEmbeddedRelation(DNStateManager ownerSM, int ownerMemberNum, PersistableObjectType objectType, DNStateManager embSM)voidExecutionContext. removeEmbeddedOwnerRelation(DNStateManager ownerSM, int ownerFieldNum, DNStateManager embSM)Convenience method to remove the EmbeddedOwnerRelation between the specified StateManagers.voidExecutionContextImpl. removeEmbeddedOwnerRelation(DNStateManager ownerSM, int ownerFieldNum, DNStateManager embSM)voidExecutionContext. removeStateManagerAssociatedValue(DNStateManager sm, Object key)voidExecutionContextImpl. removeStateManagerAssociatedValue(DNStateManager sm, Object key)voidExecutionContext. removeStateManagerFromCache(DNStateManager sm)Method to remove the object managed by the specified StateManager from the cache.voidExecutionContextImpl. removeStateManagerFromCache(DNStateManager sm)Method to remove the object managed by the specified StateManager from the cache.voidExecutionContextThreadedImpl. removeStateManagerFromCache(DNStateManager sm)voidExecutionContext. setAttachDetachReferencedObject(DNStateManager sm, Object obj)Register a referenced object against this StateManager for the attach/detach process.voidExecutionContextImpl. setAttachDetachReferencedObject(DNStateManager sm, Object obj)voidExecutionContext. setStateManagerAssociatedValue(DNStateManager sm, Object key, Object value)voidExecutionContextImpl. setStateManagerAssociatedValue(DNStateManager sm, Object key, Object value)Method parameters in org.datanucleus with type arguments of type DNStateManager Modifier and Type Method Description protected voidExecutionContextImpl. putObjectsIntoLevel2Cache(Set<DNStateManager> sms)Method to put the passed objects into the L2 cache.Constructors in org.datanucleus with parameters of type DNStateManager Constructor Description EmbeddedOwnerRelation(DNStateManager sm, int memberNum, PersistableObjectType objectType, DNStateManager embSM) -
Uses of DNStateManager in org.datanucleus.cache
Methods in org.datanucleus.cache that return DNStateManager Modifier and Type Method Description DNStateManagerSoftRefCache. get(Object id)DNStateManagerStrongRefCache. get(Object id)DNStateManagerWeakRefCache. get(Object id)DNStateManagerLevel1Cache. getUnique(CacheUniqueKey key)Method to retrieve StateManager for the specified unique key.DNStateManagerSoftRefCache. getUnique(CacheUniqueKey key)DNStateManagerStrongRefCache. getUnique(CacheUniqueKey key)DNStateManagerWeakRefCache. getUnique(CacheUniqueKey key)DNStateManagerSoftRefCache. put(Object id, DNStateManager sm)DNStateManagerStrongRefCache. put(Object id, DNStateManager sm)DNStateManagerWeakRefCache. put(Object id, DNStateManager sm)DNStateManagerSoftRefCache. remove(Object id)DNStateManagerStrongRefCache. remove(Object id)DNStateManagerWeakRefCache. remove(Object id)Methods in org.datanucleus.cache with parameters of type DNStateManager Modifier and Type Method Description DNStateManagerSoftRefCache. put(Object id, DNStateManager sm)DNStateManagerStrongRefCache. put(Object id, DNStateManager sm)DNStateManagerWeakRefCache. put(Object id, DNStateManager sm)ObjectLevel1Cache. putUnique(CacheUniqueKey key, DNStateManager sm)Method to store a StateManager for this unique key.ObjectSoftRefCache. putUnique(CacheUniqueKey key, DNStateManager sm)ObjectStrongRefCache. putUnique(CacheUniqueKey key, DNStateManager sm)ObjectWeakRefCache. putUnique(CacheUniqueKey key, DNStateManager sm)Constructors in org.datanucleus.cache with parameters of type DNStateManager Constructor Description L2CachePopulateFieldManager(DNStateManager sm, CachedPC cachedpc)L2CacheRetrieveFieldManager(DNStateManager sm, CachedPC cachedpc) -
Uses of DNStateManager in org.datanucleus.flush
Methods in org.datanucleus.flush that return DNStateManager Modifier and Type Method Description DNStateManagerCollectionAddOperation. getStateManager()DNStateManagerCollectionClearOperation. getStateManager()DNStateManagerCollectionRemoveOperation. getStateManager()DNStateManagerDeleteOperation. getStateManager()DNStateManagerListRemoveAtOperation. getStateManager()DNStateManagerListSetOperation. getStateManager()DNStateManagerMapClearOperation. getStateManager()DNStateManagerMapPutOperation. getStateManager()DNStateManagerMapRemoveOperation. getStateManager()DNStateManagerOperation. getStateManager()Accessor for StateManager of the object that this operation is performed on.DNStateManagerPersistOperation. getStateManager()DNStateManagerUpdateMemberOperation. getStateManager()Methods in org.datanucleus.flush with parameters of type DNStateManager Modifier and Type Method Description protected static booleanOperationQueue. isAddFollowedByRemoveOnSameSCO(Store store, DNStateManager sm, Operation currentOper, ListIterator<Operation> listIter)Convenience optimisation checker to return if the current operation is ADD of an element that is immediately REMOVED.protected static booleanOperationQueue. isPutFollowedByRemoveOnSameSCO(Store store, DNStateManager sm, Operation currentOper, ListIterator<Operation> listIter)Convenience optimisation checker to return if the current operation is PUT of a key that is immediately REMOVED.protected static booleanOperationQueue. isRemoveFollowedByAddOnSameSCO(Store store, DNStateManager sm, Operation currentOper, ListIterator<Operation> listIter)Convenience optimisation checker to return if the current operation is REMOVE of an element that is immediately ADDed.voidOperationQueue. performAll(Store store, DNStateManager sm)Method to perform all operations queued for the specified StateManager and backing store.Method parameters in org.datanucleus.flush with type arguments of type DNStateManager Modifier and Type Method Description List<NucleusOptimisticException>FlushNonReferential. execute(ExecutionContext ec, Collection<DNStateManager> primarySMs, Collection<DNStateManager> secondarySMs, OperationQueue opQueue)List<NucleusOptimisticException>FlushOrdered. execute(ExecutionContext ec, Collection<DNStateManager> primaryDNs, Collection<DNStateManager> secondaryDNs, 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. -
Uses of DNStateManager in org.datanucleus.state
Classes in org.datanucleus.state that implement DNStateManager Modifier and Type Class Description classReferentialStateManagerImplImplementation of a StateManager for use where insertion ordering is important (such as RDBMS).classStateManagerImplImplementation of a StateManager, supporting the bytecode enhancement contract of DataNucleus.Methods in org.datanucleus.state that return DNStateManager Modifier and Type Method Description DNStateManagerStateManagerPool. checkOut(ExecutionContext ec, AbstractClassMetaData cmd)protected DNStateManagerStateManagerPool. create(ExecutionContext ec, AbstractClassMetaData cmd)protected DNStateManagerStateManagerFactoryImpl. 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)DNStateManagerStateManagerFactory. 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.DNStateManagerStateManagerFactoryImpl. 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)Methods in org.datanucleus.state with parameters of type DNStateManager Modifier and Type Method Description protected LifeCycleStateLifeCycleState. changeState(DNStateManager sm, int newStateType)Utility to change state to a new state.protected LifeCycleStateLifeCycleState. changeTransientState(DNStateManager sm, int newStateType)Utility to change state to a new state.voidStateManagerPool. checkIn(DNStateManager sm)voidStateManagerFactory. disconnectStateManager(DNStateManager sm)Method to be called when an StateManager is disconnected (finished with).voidStateManagerFactoryImpl. disconnectStateManager(DNStateManager sm)voidStateManagerPool. expire(DNStateManager sm)LockModeLockManager. getLockMode(DNStateManager sm)Accessor for the current lock mode for the object managed by the passed StateManager (mode 1).LockModeLockManagerImpl. getLockMode(DNStateManager sm)voidLockManager. lock(DNStateManager sm, LockMode lockMode)Method to lock the object managed by the passed StateManager (mode 1).voidLockManagerImpl. lock(DNStateManager sm, LockMode lockMode)DNStateManagerStateManagerFactory. 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.DNStateManagerStateManagerFactoryImpl. 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)voidLockManager. performOptimisticVersionCheck(DNStateManager sm, VersionStrategy versionStrategy, Object versionDatastore)Method to perform an optimistic version check on the specified StateManager.voidLockManagerImpl. performOptimisticVersionCheck(DNStateManager sm, VersionStrategy versionStrategy, Object versionDatastore)Perform an optimistic version check on the passed object, against the passed version in the datastore.voidDNStateManager. retrieveDetachState(DNStateManager sm)Convenience method to retrieve the detach state from the passed StateManager's managed objectvoidStateManagerImpl. retrieveDetachState(DNStateManager sm)Convenience method to retrieve the detach state from the passed StateManager's object.LifeCycleStateLifeCycleState. transitionAttach(DNStateManager sm)Method to transition to persistent-clean.LifeCycleStateLifeCycleState. transitionBegin(DNStateManager sm, Transaction tx)Method to transition to transaction begin state.LifeCycleStateLifeCycleState. transitionCommit(DNStateManager sm, Transaction tx)Method to transition to commit state.LifeCycleStateLifeCycleState. transitionDeletePersistent(DNStateManager sm)Method to transition to delete persistent state.LifeCycleStateLifeCycleState. transitionDetach(DNStateManager sm)Method to transition to detached-clean.LifeCycleStateLifeCycleState. transitionEvict(DNStateManager sm)Method to transition to evict state.LifeCycleStateLifeCycleState. transitionMakeNontransactional(DNStateManager sm)Method to transition to nontransactional state.LifeCycleStateLifeCycleState. transitionMakePersistent(DNStateManager sm)Method to transition to persistent state.LifeCycleStateLifeCycleState. transitionMakeTransactional(DNStateManager sm, boolean refreshFields)Method to transition to transactional state.LifeCycleStateLifeCycleState. transitionMakeTransient(DNStateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)Method to transition to transient state.LifeCycleStateLifeCycleState. transitionReadField(DNStateManager sm, boolean isLoaded)Method to transition to read-field state.LifeCycleStateLifeCycleState. transitionRefresh(DNStateManager sm)Method to transition to refresh state.LifeCycleStateLifeCycleState. transitionRetrieve(DNStateManager sm, boolean fgOnly)Method to transition to retrieve state.LifeCycleStateLifeCycleState. transitionRetrieve(DNStateManager sm, FetchPlan fetchPlan)Method to transition to retrieve state.LifeCycleStateLifeCycleState. transitionRollback(DNStateManager sm, Transaction tx)Method to transition to rollback state.LifeCycleStateLifeCycleState. transitionSerialize(DNStateManager sm)Method to transition when serialised.LifeCycleStateLifeCycleState. transitionWriteField(DNStateManager sm)Method to transition to write-field state.voidLockManager. unlock(DNStateManager sm)Method to unlock the object managed by the passed StateManager (mode 1).voidLockManagerImpl. unlock(DNStateManager sm)booleanStateManagerPool. validate(DNStateManager sm)Constructors in org.datanucleus.state with parameters of type DNStateManager Constructor Description IllegalStateTransitionException(LifeCycleState state, String transition, DNStateManager sm)Constructs an illegal state transition exception.RelationshipManagerImpl(DNStateManager sm)Constructor.Constructor parameters in org.datanucleus.state with type arguments of type DNStateManager Constructor Description StateManagerPool(int maxIdle, boolean reaperThread, Class<? extends DNStateManager> smClass) -
Uses of DNStateManager in org.datanucleus.store
Methods in org.datanucleus.store with parameters of type DNStateManager Modifier and Type Method Description voidAbstractPersistenceHandler. assertReadOnlyForUpdateOfObject(DNStateManager sm)Convenience method to assert when this StoreManager is read-only and the specified object is attempting to be updated.voidStorePersistenceHandler. deleteObject(DNStateManager sm)Deletes a persistent object from the datastore.default voidStorePersistenceHandler. deleteObjects(DNStateManager... sms)Method to delete an array of objects from the datastore.voidFieldValues. fetchFields(DNStateManager sm)Method to retrieve the fields and store them in the object managed by StateManager.voidFieldValues. fetchNonLoadedFields(DNStateManager sm)Method to retrieve the unloaded fields and store them in the object managed by StateManager.voidStorePersistenceHandler. fetchObject(DNStateManager sm, int[] fieldNumbers)Fetches specified fields of a persistent object from the database.default voidStorePersistenceHandler. fetchObjects(int[] fieldNumbers, DNStateManager... sms)Fetches specified fields of several persistent objects (of the same type) from the database.voidStorePersistenceHandler. insertObject(DNStateManager sm)Inserts a persistent object into the database.default voidStorePersistenceHandler. insertObjects(DNStateManager... sms)Method to insert an array of objects to the datastore.voidStorePersistenceHandler. locateObject(DNStateManager sm)Locates this object in the datastore.default voidStorePersistenceHandler. locateObjects(DNStateManager[] sms)Locates object(s) in the datastore.voidObjectReferencingStoreManager. notifyObjectIsOutdated(DNStateManager sm)Notifies this store manager that the main memory (RAM, heap) copy of the PC object of the supplied StateManager may not be regarded as valid anymore.voidStorePersistenceHandler. updateObject(DNStateManager sm, int[] fieldNumbers)Updates a persistent object in the datastore. -
Uses of DNStateManager in org.datanucleus.store.federation
Methods in org.datanucleus.store.federation with parameters of type DNStateManager Modifier and Type Method Description voidFederatedPersistenceHandler. deleteObject(DNStateManager sm)voidFederatedPersistenceHandler. deleteObjects(DNStateManager... sms)voidFederatedPersistenceHandler. fetchObject(DNStateManager sm, int[] fieldNumbers)voidFederatedPersistenceHandler. fetchObjects(int[] fieldNumbers, DNStateManager... sms)voidFederatedPersistenceHandler. insertObject(DNStateManager sm)voidFederatedPersistenceHandler. insertObjects(DNStateManager... sms)voidFederatedPersistenceHandler. locateObject(DNStateManager sm)voidFederatedPersistenceHandler. locateObjects(DNStateManager[] sms)voidFederatedPersistenceHandler. updateObject(DNStateManager sm, int[] fieldNumbers) -
Uses of DNStateManager in org.datanucleus.store.fieldmanager
Fields in org.datanucleus.store.fieldmanager declared as DNStateManager Modifier and Type Field Description protected DNStateManagerAbstractFetchDepthFieldManager. smStateManager of the instance being fetched (detached or made transient).protected DNStateManagerAbstractFetchFieldManager. smprotected DNStateManagerAbstractStoreFieldManager. smConstructors in org.datanucleus.store.fieldmanager with parameters of type DNStateManager Constructor Description AbstractFetchDepthFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)Constructor for a field manager for fetch plan processing.AbstractFetchFieldManager(DNStateManager sm)Constructor to use when retrieving values of fields of existing objects.AbstractStoreFieldManager(DNStateManager sm, boolean insert)AttachFieldManager(DNStateManager attachedSM, boolean[] secondClassMutableFields, boolean[] dirtyFields, boolean persistent, boolean cascadeAttach, boolean copy)Constructor.DeleteFieldManager(DNStateManager sm)Constructor.DeleteFieldManager(DNStateManager sm, boolean manageRelationships)Constructor.DetachFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state, boolean copy)Constructor for a field manager for detachment.LoadFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)Constructor for a field manager for make transient process.MakeTransientFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)Constructor for a field manager for make transient process.NullifyRelationFieldManager(DNStateManager sm)Constructor.PersistFieldManager(DNStateManager sm, boolean replaceSCOsWithWrappers)Constructor.ReachabilityFieldManager(DNStateManager sm, Set reachables)Constructor. -
Uses of DNStateManager in org.datanucleus.store.types
Methods in org.datanucleus.store.types with parameters of type DNStateManager Modifier and Type Method Description static booleanSCOUtils. attachCopyElements(DNStateManager ownerSM, Collection scoColl, Collection detachedElements, boolean elementsWithoutId)Convenience method for use by Collection/Set/HashSet attachCopy methods to add any new elements (added whilst detached) to the collection.static voidSCOUtils. attachCopyForCollection(DNStateManager ownerSM, Object[] detachedElements, Collection attached, boolean elementsWithoutIdentity)Method to return an attached copy of the passed (detached) value.static voidSCOUtils. attachCopyForMap(DNStateManager ownerSM, Set detachedEntries, Map attached, boolean keysWithoutIdentity, boolean valuesWithoutIdentity)Method to return an attached copy of the passed (detached) value.static voidSCOUtils. attachForCollection(DNStateManager ownerSM, Object[] elements, boolean elementsWithoutIdentity)Convenience method to attach (recursively) all elements for a collection field.static voidSCOUtils. attachForMap(DNStateManager ownerSM, Set entries, boolean keysWithoutIdentity, boolean valuesWithoutIdentity)Convenience method to attach (recursively) all keys/values for a map field.SCOTypeManager. createSCOWrapper(DNStateManager ownerSM, AbstractMemberMetaData mmd, Class instantiatedType)Method to create a new SCO wrapper for member type.SCOTypeManagerImpl. createSCOWrapper(DNStateManager ownerSM, AbstractMemberMetaData mmd, Class instantiatedType)Method to create a new SCO wrapper for member type.static StringSCOUtils. getContainerInfoMessage(DNStateManager ownerSM, String fieldName, SCOContainer cont, boolean useCache, boolean allowNulls, boolean lazyLoading)Utility to generate a message representing the SCO container wrapper and its capabilities.static <K,V>
voidSCOUtils. populateMapDelegateWithStoreData(Map<K,V> delegate, MapStore<K,V> store, DNStateManager ownerSM)Convenience method to populate the passed delegate Map with the keys/values from the associated Store.static Object[]SCOUtils. toArray(CollectionStore backingStore, DNStateManager sm)Returns true if this collection contains the specified element.static Object[]SCOUtils. toArray(CollectionStore backingStore, DNStateManager sm, Object[] a)Returns an array containing all of the elements in this collection;static ObjectSCOUtils. unwrapSCOField(DNStateManager ownerSM, int memberNumber, Object value)Method to unwrap a SCO field value (if it is wrapped currently) and replace the member value in the owner object.static booleanSCOUtils. useCachedLazyLoading(DNStateManager ownerSM, AbstractMemberMetaData mmd)Accessor for whether the use lazy loading when caching the collection.static booleanSCOUtils. useContainerCache(DNStateManager ownerSM, AbstractMemberMetaData mmd)Utility to return whether or not to use the container cache for the collection/map for the passed StateManager SCO.static booleanSCOUtils. useQueuedUpdate(DNStateManager sm)Convenience method to return if we should use a queued update for the current operation.static ObjectSCOUtils. wrapAndReplaceSCOField(DNStateManager ownerSM, int memberNumber, Object newValue, Object oldValue, boolean replaceFieldIfChanged)Method to create a new SCO wrapper for the specified field replacing the old value with the new value.static ObjectSCOUtils. wrapSCOField(DNStateManager ownerSM, int memberNumber, Object value, boolean replaceFieldIfChanged)Method to create a new SCO wrapper for the specified field/property.static SCOSCOUtils. wrapSCOField(DNStateManager ownerSM, AbstractMemberMetaData mmd, Class instantiatedType, Object value, boolean replaceField)Method to create a new SCO wrapper for the specified member, and optionally replace the value in the member of the owner object.Constructors in org.datanucleus.store.types with parameters of type DNStateManager Constructor Description SCOCollectionIterator(Collection<E> sco, DNStateManager sm, Collection<E> theDelegate, CollectionStore<E> backingStore, boolean useDelegate)Constructor taking the delegate or backing store.SCOListIterator(List<E> sco, DNStateManager sm, List<E> theDelegate, ListStore<E> theStore, boolean useDelegate, int startIndex)Constructor taking the delegate or backing store, and any start index. -
Uses of DNStateManager in org.datanucleus.store.types.scostore
Methods in org.datanucleus.store.types.scostore with parameters of type DNStateManager Modifier and Type Method Description booleanCollectionStore. add(DNStateManager sm, E element, int size)Method to add an element to the collection.voidListStore. add(DNStateManager ownerSM, E element, int index, int size)Method to add an element to the List.booleanPersistableRelationStore. add(DNStateManager sm1, DNStateManager sm2)Method to add the relation between the provided objects.booleanCollectionStore. addAll(DNStateManager sm, Collection<E> elements, int size)Method to add a collection of elements to the collection.booleanListStore. addAll(DNStateManager ownerSM, Collection<E> c, int index, int size)Method to add a collection of elements to the List.voidArrayStore. clear(DNStateManager sm)Method to clear the array.voidCollectionStore. clear(DNStateManager sm)Method to clear the collection.voidMapStore. clear(DNStateManager sm)Method to clear the map.booleanCollectionStore. contains(DNStateManager sm, Object element)Method to check if an element exists in the collection.booleanMapStore. containsKey(DNStateManager sm, Object key)Accessor for whether the Map contains this key.booleanMapStore. containsValue(DNStateManager sm, Object value)Accessor for whether the Map contains this value.EListStore. get(DNStateManager ownerSM, int index)Method to retrieve an element from a position in the List.VMapStore. get(DNStateManager sm, Object key)Accessor for a value from the Map.List<E>ArrayStore. getArray(DNStateManager sm)Method to retrieve the elements of the array.intListStore. indexOf(DNStateManager ownerSM, Object element)Method to return the position of an element in the List.Iterator<E>ArrayStore. iterator(DNStateManager sm)Accessor for an iterator for the array.Iterator<E>CollectionStore. iterator(DNStateManager sm)Accessor for an iterator for the collection.intListStore. lastIndexOf(DNStateManager ownerSM, Object element)Method to return the last position of an element in the List.ListIterator<E>ListStore. listIterator(DNStateManager ownerSM)Accessor for a list iterator for the List.VMapStore. put(DNStateManager sm, K key, V value)Method to add a value to the Map against this key.default voidMapStore. put(DNStateManager sm, K key, V value, V previousValue, boolean present)Method to add a value to the Map against this key, where we know the previous value for the key (if present).default voidMapStore. putAll(DNStateManager<?> sm, Map<? extends K,? extends V> m, Map<K,V> previousMap)Method to add a map of values to the Map where we know the existing Map values prior to the putAll call.voidMapStore. putAll(DNStateManager sm, Map<? extends K,? extends V> m)Method to add a map of values to the Map.booleanCollectionStore. remove(DNStateManager sm, Object element, int size, boolean allowDependentField)Method to remove an element from the collection.EListStore. remove(DNStateManager sm, int index, int size)Method to remove an element from the List.VMapStore. remove(DNStateManager sm, Object key)Method to remove a value from the Map.voidMapStore. remove(DNStateManager sm, Object key, Object val)Method to remove a value from the Map where we know the value assigned to this key (to avoid lookups).booleanPersistableRelationStore. remove(DNStateManager sm1)Method to remove the relation from the provided object.booleanCollectionStore. removeAll(DNStateManager sm, Collection elements, int size)Method to remove a collection of elements from the collection.booleanListStore. removeAll(DNStateManager ownerSM, Collection elements, int size, int[] elementIndices)Method to remove a collection of elements from the collection.booleanArrayStore. set(DNStateManager sm, Object array)Method to set the elements in the array.ObjectListStore. set(DNStateManager ownerSM, int index, Object element, boolean allowDependentField)Method to update an element at a position in the List.intArrayStore. size(DNStateManager sm)Accessor for the size of the array.intCollectionStore. size(DNStateManager sm)Accessor for the size of the collection.ListListStore. subList(DNStateManager ownerSM, int from, int to)Accessor for a sublist of elements between from and to indices.voidCollectionStore. update(DNStateManager sm, Collection coll)Method to update the collection to be the supplied collection of elements.default voidMapStore. update(DNStateManager sm, Map<K,V> map)Method to update the map to be the supplied map of entries.booleanPersistableRelationStore. update(DNStateManager sm1, DNStateManager sm2)Method to update the relation for the first object to relate to the second object.booleanCollectionStore. updateEmbeddedElement(DNStateManager sm, E element, int fieldNumber, Object value)Method to update en embedded element in the collection.booleanMapStore. updateEmbeddedKey(DNStateManager sm, Object key, int fieldNumber, Object newValue)Method to update an embedded key in the map.booleanMapStore. updateEmbeddedValue(DNStateManager sm, Object value, int fieldNumber, Object newValue)Method to update an embedded value in the map. -
Uses of DNStateManager in org.datanucleus.store.types.wrappers
Fields in org.datanucleus.store.types.wrappers declared as DNStateManager Modifier and Type Field Description protected DNStateManagerArrayList. ownerSMprotected DNStateManagerBitSet. ownerSMprotected DNStateManagerCollection. ownerSMprotected DNStateManagerDate. ownerSMprotected DNStateManagerGregorianCalendar. ownerSMprotected DNStateManagerHashMap. ownerSMprotected DNStateManagerHashSet. ownerSMprotected DNStateManagerHashtable. ownerSMprotected DNStateManagerLinkedHashMap. ownerSMprotected DNStateManagerLinkedHashSet. ownerSMprotected DNStateManagerLinkedList. ownerSMprotected DNStateManagerList. ownerSMprotected DNStateManagerMap. ownerSMprotected DNStateManagerPriorityQueue. ownerSMprotected DNStateManagerProperties. ownerSMprotected DNStateManagerQueue. ownerSMprotected DNStateManagerSet. ownerSMprotected DNStateManagerSortedMap. ownerSMprotected DNStateManagerSortedSet. ownerSMprotected DNStateManagerSqlDate. ownerSMprotected DNStateManagerSqlTime. ownerSMprotected DNStateManagerSqlTimestamp. ownerSMprotected DNStateManagerStack. ownerSMprotected DNStateManagerTreeMap. ownerSMprotected DNStateManagerTreeSet. ownerSMprotected DNStateManagerVector. ownerSMConstructors in org.datanucleus.store.types.wrappers with parameters of type DNStateManager Constructor Description ArrayList(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the member.BitSet(DNStateManager sm, AbstractMemberMetaData mmd)Creates a BitSet object.Collection(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Date(DNStateManager sm, AbstractMemberMetaData mmd)Creates a Date object that represents the time at which it was allocated.GregorianCalendar(DNStateManager sm, AbstractMemberMetaData mmd)Creates a GregorianCalendar object that represents the time at which it was allocated.HashMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorHashSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Hashtable(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorLinkedHashMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorLinkedHashSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.LinkedList(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.List(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Map(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.PriorityQueue(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Properties(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorQueue(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Set(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.SortedMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorSortedSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.SqlDate(DNStateManager sm, AbstractMemberMetaData mmd)Creates a SqlDate object that represents the time at which it was allocated.SqlTime(DNStateManager sm, AbstractMemberMetaData mmd)Creates a SqlTime object that represents the time at which it was allocated.SqlTimestamp(DNStateManager sm, AbstractMemberMetaData mmd)Creates aSqlTimestampobject that represents the time at which it was allocated.Stack(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.TreeMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorTreeSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Vector(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name. -
Uses of DNStateManager in org.datanucleus.store.types.wrappers.backed
Constructors in org.datanucleus.store.types.wrappers.backed with parameters of type DNStateManager Constructor Description ArrayList(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Collection(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Collection(DNStateManager ownerSM, AbstractMemberMetaData mmd, boolean allowNulls, CollectionStore backingStore)Constructor used when creating a Collection for "Map.values" with specified backing store.HashMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorHashSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Hashtable(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorLinkedHashMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorLinkedHashSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.LinkedList(DNStateManager ownerSM, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.List(DNStateManager ownerSM, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Map(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.PriorityQueue(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Properties(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorQueue(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Set(DNStateManager sm, AbstractMemberMetaData mmd)Constructor.Set(DNStateManager ownerSM, AbstractMemberMetaData mmd, boolean allowNulls, SetStore backingStore)Constructor allowing the specification of the backing store to be used.SortedMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorSortedSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Stack(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.TreeMap(DNStateManager sm, AbstractMemberMetaData mmd)ConstructorTreeSet(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.Vector(DNStateManager sm, AbstractMemberMetaData mmd)Constructor, using StateManager of the "owner" and the field name.
-