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 DNStateManager
ExecutionContext.EmbeddedOwnerRelation. embeddedSM
protected DNStateManager
ExecutionContext.EmbeddedOwnerRelation. ownerSM
Fields in org.datanucleus with type parameters of type DNStateManager Modifier and Type Field Description protected Map<DNStateManager,Map<?,?>>
ExecutionContextImpl. stateManagerAssociatedValuesMap
Map of associated values per StateManager.Methods in org.datanucleus that return DNStateManager Modifier and Type Method Description DNStateManager
ExecutionContext. findStateManager(Object pc)
Method to find StateManager for the passed persistable object when it is managed by this manager.DNStateManager
ExecutionContext. 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.DNStateManager
ExecutionContextImpl. findStateManager(Object pc)
Method to return StateManager for an object (if managed).DNStateManager
ExecutionContextImpl. findStateManager(Object pc, boolean persist)
Find StateManager for the specified object, persisting it if required and assigning a StateManager if doing soDNStateManager
ExecutionContextThreadedImpl. findStateManager(Object pc)
DNStateManager
ExecutionContext. findStateManagerForEmbedded(Object value, DNStateManager owner, AbstractMemberMetaData mmd, PersistableObjectType objectType)
Method to find StateManager for the passed embedded persistable object.DNStateManager
ExecutionContextImpl. findStateManagerForEmbedded(Object value, DNStateManager ownerSM, AbstractMemberMetaData mmd, PersistableObjectType objectType)
DNStateManager
ExecutionContext. findStateManagerOfOwnerForAttachingObject(Object pc)
DNStateManager
ExecutionContextImpl. findStateManagerOfOwnerForAttachingObject(Object pc)
DNStateManager
ExecutionContext.EmbeddedOwnerRelation. getEmbeddedSM()
DNStateManager
ExecutionContext. getOwnerForEmbeddedStateManager(DNStateManager embSM)
Accessor for the owner StateManager for the provided embedded StateManager.DNStateManager
ExecutionContextImpl. getOwnerForEmbeddedStateManager(DNStateManager embSM)
DNStateManager
ExecutionContext.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 void
ManagedRelationsHandler. addRelationshipManagerForStateManager(DNStateManager sm, RelationshipManager relMgr)
void
ExecutionContext. addStateManagerToCache(DNStateManager sm)
Method to add the object managed by the specified StateManager to the cache.void
ExecutionContextImpl. addStateManagerToCache(DNStateManager sm)
Method to add the object managed by the specified StateManager to the (L1) cache.void
ExecutionContextThreadedImpl. addStateManagerToCache(DNStateManager sm)
void
ExecutionContext. attachObject(DNStateManager ownerSM, Object pc, boolean sco)
Method to attach a persistent detached object.void
ExecutionContextImpl. attachObject(DNStateManager ownerSM, Object pc, boolean sco)
void
ExecutionContextThreadedImpl. attachObject(DNStateManager ownerSM, Object pc, boolean sco)
<T> T
ExecutionContext. attachObjectCopy(DNStateManager ownerSM, T pc, boolean sco)
Method to attach a persistent detached object returning an attached copy of the object.<T> T
ExecutionContextImpl. attachObjectCopy(DNStateManager ownerSM, T pc, boolean sco)
Object
ExecutionContextThreadedImpl. attachObjectCopy(DNStateManager ownerSM, Object pc, boolean sco)
void
ExecutionContext. clearDirty(DNStateManager sm)
Mark the specified StateManager as clean.void
ExecutionContextImpl. clearDirty(DNStateManager sm)
Method to clear an object from the list of dirty objects.void
ExecutionContextThreadedImpl. clearDirty(DNStateManager sm)
boolean
ExecutionContext. containsStateManagerAssociatedValue(DNStateManager sm, Object key)
boolean
ExecutionContextImpl. containsStateManagerAssociatedValue(DNStateManager sm, Object key)
void
ExecutionContext. enlistInTransaction(DNStateManager sm)
Method to enlist the specified StateManager in the current transaction.void
ExecutionContextImpl. enlistInTransaction(DNStateManager sm)
void
ExecutionContextThreadedImpl. enlistInTransaction(DNStateManager sm)
void
ExecutionContext. evictFromTransaction(DNStateManager sm)
Method to evict the specified StateManager from the current transaction.void
ExecutionContextImpl. evictFromTransaction(DNStateManager sm)
void
ExecutionContextThreadedImpl. evictFromTransaction(DNStateManager sm)
DNStateManager
ExecutionContext. findStateManagerForEmbedded(Object value, DNStateManager owner, AbstractMemberMetaData mmd, PersistableObjectType objectType)
Method to find StateManager for the passed embedded persistable object.DNStateManager
ExecutionContextImpl. findStateManagerForEmbedded(Object value, DNStateManager ownerSM, AbstractMemberMetaData mmd, PersistableObjectType objectType)
void
ExecutionContext. flushOperationsForBackingStore(Store backingStore, DNStateManager sm)
Method to flush all queued operations for the specified backing store (if any).void
ExecutionContextImpl. flushOperationsForBackingStore(Store backingStore, DNStateManager sm)
Object
ExecutionContext. getAttachDetachReferencedObject(DNStateManager sm)
Access a referenced object for this StateManager during the attach/detach process.Object
ExecutionContextImpl. 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 CachedPC
ExecutionContextImpl. getL2CacheableObject(DNStateManager sm, CachedPC currentCachedPC)
Convenience method to convert the object managed by StateManager into a form suitable for caching in an L2 cache.DNStateManager
ExecutionContext. getOwnerForEmbeddedStateManager(DNStateManager embSM)
Accessor for the owner StateManager for the provided embedded StateManager.DNStateManager
ExecutionContextImpl. getOwnerForEmbeddedStateManager(DNStateManager embSM)
ExecutionContext.EmbeddedOwnerRelation
ExecutionContext. getOwnerInformationForEmbedded(DNStateManager embSM)
Accessor for the owner relation for the specified embedded StateManager where it is embedded.ExecutionContext.EmbeddedOwnerRelation
ExecutionContextImpl. getOwnerInformationForEmbedded(DNStateManager embSM)
RelationshipManager
ExecutionContext. getRelationshipManager(DNStateManager sm)
Accessor for the RelationshipManager for the provided StateManager.RelationshipManager
ExecutionContextImpl. getRelationshipManager(DNStateManager sm)
Method to return the RelationshipManager for StateManager.RelationshipManager
ManagedRelationsHandler. getRelationshipManagerForStateManager(DNStateManager sm)
Method to return the RelationshipManager for the specified StateManager.Object
ExecutionContext. getStateManagerAssociatedValue(DNStateManager sm, Object key)
Object
ExecutionContextImpl. getStateManagerAssociatedValue(DNStateManager sm, Object key)
void
ExecutionContext. markDirty(DNStateManager sm, boolean directUpdate)
Mark the specified StateManager as dirtyvoid
ExecutionContextImpl. markDirty(DNStateManager sm, boolean directUpdate)
Method to mark an object (StateManager) as dirty.void
ExecutionContextThreadedImpl. markDirty(DNStateManager sm, boolean directUpdate)
<T> T
ExecutionContext. 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> T
ExecutionContextImpl. persistObjectInternal(T obj, FieldValues preInsertChanges, PersistableObjectType objectType, DNStateManager ownerSM, int ownerFieldNum)
void
ExecutionContext. putObjectIntoLevel1Cache(DNStateManager sm)
Method to put a Persistable object associated to StateManager into the L1 cache.void
ExecutionContextImpl. putObjectIntoLevel1Cache(DNStateManager sm)
Convenience method to add an object to the L1 cache.void
ExecutionContext. 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.void
ExecutionContextImpl. putObjectIntoLevel2Cache(DNStateManager sm, boolean updateIfPresent)
protected void
ExecutionContextImpl. putObjectIntoLevel2CacheInternal(DNStateManager sm, boolean updateIfPresent)
Convenience method to add/update an object in the L2 cache.ExecutionContext.EmbeddedOwnerRelation
ExecutionContext. 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.EmbeddedOwnerRelation
ExecutionContextImpl. registerEmbeddedRelation(DNStateManager ownerSM, int ownerMemberNum, PersistableObjectType objectType, DNStateManager embSM)
void
ExecutionContext. removeEmbeddedOwnerRelation(DNStateManager ownerSM, int ownerFieldNum, DNStateManager embSM)
Convenience method to remove the EmbeddedOwnerRelation between the specified StateManagers.void
ExecutionContextImpl. removeEmbeddedOwnerRelation(DNStateManager ownerSM, int ownerFieldNum, DNStateManager embSM)
void
ExecutionContext. removeStateManagerAssociatedValue(DNStateManager sm, Object key)
void
ExecutionContextImpl. removeStateManagerAssociatedValue(DNStateManager sm, Object key)
void
ExecutionContext. removeStateManagerFromCache(DNStateManager sm)
Method to remove the object managed by the specified StateManager from the cache.void
ExecutionContextImpl. removeStateManagerFromCache(DNStateManager sm)
Method to remove the object managed by the specified StateManager from the cache.void
ExecutionContextThreadedImpl. removeStateManagerFromCache(DNStateManager sm)
void
ExecutionContext. setAttachDetachReferencedObject(DNStateManager sm, Object obj)
Register a referenced object against this StateManager for the attach/detach process.void
ExecutionContextImpl. setAttachDetachReferencedObject(DNStateManager sm, Object obj)
void
ExecutionContext. setStateManagerAssociatedValue(DNStateManager sm, Object key, Object value)
void
ExecutionContextImpl. setStateManagerAssociatedValue(DNStateManager sm, Object key, Object value)
Method parameters in org.datanucleus with type arguments of type DNStateManager Modifier and Type Method Description protected void
ExecutionContextImpl. 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 DNStateManager
SoftRefCache. get(Object id)
DNStateManager
StrongRefCache. get(Object id)
DNStateManager
WeakRefCache. get(Object id)
DNStateManager
Level1Cache. getUnique(CacheUniqueKey key)
Method to retrieve StateManager for the specified unique key.DNStateManager
SoftRefCache. getUnique(CacheUniqueKey key)
DNStateManager
StrongRefCache. getUnique(CacheUniqueKey key)
DNStateManager
WeakRefCache. getUnique(CacheUniqueKey key)
DNStateManager
SoftRefCache. put(Object id, DNStateManager sm)
DNStateManager
StrongRefCache. put(Object id, DNStateManager sm)
DNStateManager
WeakRefCache. put(Object id, DNStateManager sm)
DNStateManager
SoftRefCache. remove(Object id)
DNStateManager
StrongRefCache. remove(Object id)
DNStateManager
WeakRefCache. remove(Object id)
Methods in org.datanucleus.cache with parameters of type DNStateManager Modifier and Type Method Description DNStateManager
SoftRefCache. put(Object id, DNStateManager sm)
DNStateManager
StrongRefCache. put(Object id, DNStateManager sm)
DNStateManager
WeakRefCache. put(Object id, DNStateManager sm)
Object
Level1Cache. putUnique(CacheUniqueKey key, DNStateManager sm)
Method to store a StateManager for this unique key.Object
SoftRefCache. putUnique(CacheUniqueKey key, DNStateManager sm)
Object
StrongRefCache. putUnique(CacheUniqueKey key, DNStateManager sm)
Object
WeakRefCache. 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 DNStateManager
CollectionAddOperation. getStateManager()
DNStateManager
CollectionClearOperation. getStateManager()
DNStateManager
CollectionRemoveOperation. getStateManager()
DNStateManager
DeleteOperation. getStateManager()
DNStateManager
ListRemoveAtOperation. getStateManager()
DNStateManager
ListSetOperation. getStateManager()
DNStateManager
MapClearOperation. getStateManager()
DNStateManager
MapPutOperation. getStateManager()
DNStateManager
MapRemoveOperation. getStateManager()
DNStateManager
Operation. getStateManager()
Accessor for StateManager of the object that this operation is performed on.DNStateManager
PersistOperation. getStateManager()
DNStateManager
UpdateMemberOperation. getStateManager()
Methods in org.datanucleus.flush with parameters of type DNStateManager Modifier and Type Method Description protected static boolean
OperationQueue. 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 boolean
OperationQueue. 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 boolean
OperationQueue. 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.void
OperationQueue. 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 class
ReferentialStateManagerImpl
Implementation of a StateManager for use where insertion ordering is important (such as RDBMS).class
StateManagerImpl
Implementation of a StateManager, supporting the bytecode enhancement contract of DataNucleus.Methods in org.datanucleus.state that return DNStateManager Modifier and Type Method Description DNStateManager
StateManagerPool. checkOut(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)
Methods in org.datanucleus.state with parameters of type DNStateManager Modifier and Type Method Description protected LifeCycleState
LifeCycleState. changeState(DNStateManager sm, int newStateType)
Utility to change state to a new state.protected LifeCycleState
LifeCycleState. changeTransientState(DNStateManager sm, int newStateType)
Utility to change state to a new state.void
StateManagerPool. checkIn(DNStateManager sm)
void
StateManagerFactory. disconnectStateManager(DNStateManager sm)
Method to be called when an StateManager is disconnected (finished with).void
StateManagerFactoryImpl. disconnectStateManager(DNStateManager sm)
void
StateManagerPool. expire(DNStateManager sm)
LockMode
LockManager. getLockMode(DNStateManager sm)
Accessor for the current lock mode for the object managed by the passed StateManager (mode 1).LockMode
LockManagerImpl. getLockMode(DNStateManager sm)
void
LockManager. lock(DNStateManager sm, LockMode lockMode)
Method to lock the object managed by the passed StateManager (mode 1).void
LockManagerImpl. lock(DNStateManager sm, LockMode lockMode)
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)
void
LockManager. performOptimisticVersionCheck(DNStateManager sm, VersionStrategy versionStrategy, Object versionDatastore)
Method to perform an optimistic version check on the specified StateManager.void
LockManagerImpl. performOptimisticVersionCheck(DNStateManager sm, VersionStrategy versionStrategy, Object versionDatastore)
Perform an optimistic version check on the passed object, against the passed version in the datastore.void
DNStateManager. retrieveDetachState(DNStateManager sm)
Convenience method to retrieve the detach state from the passed StateManager's managed objectvoid
StateManagerImpl. retrieveDetachState(DNStateManager sm)
Convenience method to retrieve the detach state from the passed StateManager's object.LifeCycleState
LifeCycleState. transitionAttach(DNStateManager sm)
Method to transition to persistent-clean.LifeCycleState
LifeCycleState. transitionBegin(DNStateManager sm, Transaction tx)
Method to transition to transaction begin state.LifeCycleState
LifeCycleState. transitionCommit(DNStateManager sm, Transaction tx)
Method to transition to commit state.LifeCycleState
LifeCycleState. transitionDeletePersistent(DNStateManager sm)
Method to transition to delete persistent state.LifeCycleState
LifeCycleState. transitionDetach(DNStateManager sm)
Method to transition to detached-clean.LifeCycleState
LifeCycleState. transitionEvict(DNStateManager sm)
Method to transition to evict state.LifeCycleState
LifeCycleState. transitionMakeNontransactional(DNStateManager sm)
Method to transition to nontransactional state.LifeCycleState
LifeCycleState. transitionMakePersistent(DNStateManager sm)
Method to transition to persistent state.LifeCycleState
LifeCycleState. transitionMakeTransactional(DNStateManager sm, boolean refreshFields)
Method to transition to transactional state.LifeCycleState
LifeCycleState. transitionMakeTransient(DNStateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)
Method to transition to transient state.LifeCycleState
LifeCycleState. transitionReadField(DNStateManager sm, boolean isLoaded)
Method to transition to read-field state.LifeCycleState
LifeCycleState. transitionRefresh(DNStateManager sm)
Method to transition to refresh state.LifeCycleState
LifeCycleState. transitionRetrieve(DNStateManager sm, boolean fgOnly)
Method to transition to retrieve state.LifeCycleState
LifeCycleState. transitionRetrieve(DNStateManager sm, FetchPlan fetchPlan)
Method to transition to retrieve state.LifeCycleState
LifeCycleState. transitionRollback(DNStateManager sm, Transaction tx)
Method to transition to rollback state.LifeCycleState
LifeCycleState. transitionSerialize(DNStateManager sm)
Method to transition when serialised.LifeCycleState
LifeCycleState. transitionWriteField(DNStateManager sm)
Method to transition to write-field state.void
LockManager. unlock(DNStateManager sm)
Method to unlock the object managed by the passed StateManager (mode 1).void
LockManagerImpl. unlock(DNStateManager sm)
boolean
StateManagerPool. 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 void
AbstractPersistenceHandler. assertReadOnlyForUpdateOfObject(DNStateManager sm)
Convenience method to assert when this StoreManager is read-only and the specified object is attempting to be updated.void
StorePersistenceHandler. deleteObject(DNStateManager sm)
Deletes a persistent object from the datastore.default void
StorePersistenceHandler. deleteObjects(DNStateManager... sms)
Method to delete an array of objects from the datastore.void
FieldValues. fetchFields(DNStateManager sm)
Method to retrieve the fields and store them in the object managed by StateManager.void
FieldValues. fetchNonLoadedFields(DNStateManager sm)
Method to retrieve the unloaded fields and store them in the object managed by StateManager.void
StorePersistenceHandler. fetchObject(DNStateManager sm, int[] fieldNumbers)
Fetches specified fields of a persistent object from the database.default void
StorePersistenceHandler. fetchObjects(int[] fieldNumbers, DNStateManager... sms)
Fetches specified fields of several persistent objects (of the same type) from the database.void
StorePersistenceHandler. insertObject(DNStateManager sm)
Inserts a persistent object into the database.default void
StorePersistenceHandler. insertObjects(DNStateManager... sms)
Method to insert an array of objects to the datastore.void
StorePersistenceHandler. locateObject(DNStateManager sm)
Locates this object in the datastore.default void
StorePersistenceHandler. locateObjects(DNStateManager[] sms)
Locates object(s) in the datastore.void
ObjectReferencingStoreManager. 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.void
StorePersistenceHandler. 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 void
FederatedPersistenceHandler. deleteObject(DNStateManager sm)
void
FederatedPersistenceHandler. deleteObjects(DNStateManager... sms)
void
FederatedPersistenceHandler. fetchObject(DNStateManager sm, int[] fieldNumbers)
void
FederatedPersistenceHandler. fetchObjects(int[] fieldNumbers, DNStateManager... sms)
void
FederatedPersistenceHandler. insertObject(DNStateManager sm)
void
FederatedPersistenceHandler. insertObjects(DNStateManager... sms)
void
FederatedPersistenceHandler. locateObject(DNStateManager sm)
void
FederatedPersistenceHandler. locateObjects(DNStateManager[] sms)
void
FederatedPersistenceHandler. 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 DNStateManager
AbstractFetchDepthFieldManager. sm
StateManager of the instance being fetched (detached or made transient).protected DNStateManager
AbstractFetchFieldManager. sm
protected DNStateManager
AbstractStoreFieldManager. sm
Constructors 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 boolean
SCOUtils. 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 void
SCOUtils. attachCopyForCollection(DNStateManager ownerSM, Object[] detachedElements, Collection attached, boolean elementsWithoutIdentity)
Method to return an attached copy of the passed (detached) value.static void
SCOUtils. attachCopyForMap(DNStateManager ownerSM, Set detachedEntries, Map attached, boolean keysWithoutIdentity, boolean valuesWithoutIdentity)
Method to return an attached copy of the passed (detached) value.static void
SCOUtils. attachForCollection(DNStateManager ownerSM, Object[] elements, boolean elementsWithoutIdentity)
Convenience method to attach (recursively) all elements for a collection field.static void
SCOUtils. attachForMap(DNStateManager ownerSM, Set entries, boolean keysWithoutIdentity, boolean valuesWithoutIdentity)
Convenience method to attach (recursively) all keys/values for a map field.SCO
TypeManager. createSCOWrapper(DNStateManager ownerSM, AbstractMemberMetaData mmd, Class instantiatedType)
Method to create a new SCO wrapper for member type.SCO
TypeManagerImpl. createSCOWrapper(DNStateManager ownerSM, AbstractMemberMetaData mmd, Class instantiatedType)
Method to create a new SCO wrapper for member type.static String
SCOUtils. 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 Object
SCOUtils. 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 boolean
SCOUtils. useCachedLazyLoading(DNStateManager ownerSM, AbstractMemberMetaData mmd)
Accessor for whether the use lazy loading when caching the collection.static boolean
SCOUtils. 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 boolean
SCOUtils. useQueuedUpdate(DNStateManager sm)
Convenience method to return if we should use a queued update for the current operation.static Object
SCOUtils. 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 Object
SCOUtils. wrapSCOField(DNStateManager ownerSM, int memberNumber, Object value, boolean replaceFieldIfChanged)
Method to create a new SCO wrapper for the specified field/property.static SCO
SCOUtils. 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 boolean
CollectionStore. add(DNStateManager sm, E element, int size)
Method to add an element to the collection.void
ListStore. add(DNStateManager ownerSM, E element, int index, int size)
Method to add an element to the List.boolean
PersistableRelationStore. add(DNStateManager sm1, DNStateManager sm2)
Method to add the relation between the provided objects.boolean
CollectionStore. addAll(DNStateManager sm, Collection<E> elements, int size)
Method to add a collection of elements to the collection.boolean
ListStore. addAll(DNStateManager ownerSM, Collection<E> c, int index, int size)
Method to add a collection of elements to the List.void
ArrayStore. clear(DNStateManager sm)
Method to clear the array.void
CollectionStore. clear(DNStateManager sm)
Method to clear the collection.void
MapStore. clear(DNStateManager sm)
Method to clear the map.boolean
CollectionStore. contains(DNStateManager sm, Object element)
Method to check if an element exists in the collection.boolean
MapStore. containsKey(DNStateManager sm, Object key)
Accessor for whether the Map contains this key.boolean
MapStore. containsValue(DNStateManager sm, Object value)
Accessor for whether the Map contains this value.E
ListStore. get(DNStateManager ownerSM, int index)
Method to retrieve an element from a position in the List.V
MapStore. 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.int
ListStore. 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.int
ListStore. 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.V
MapStore. put(DNStateManager sm, K key, V value)
Method to add a value to the Map against this key.default void
MapStore. 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 void
MapStore. 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.void
MapStore. putAll(DNStateManager sm, Map<? extends K,? extends V> m)
Method to add a map of values to the Map.boolean
CollectionStore. remove(DNStateManager sm, Object element, int size, boolean allowDependentField)
Method to remove an element from the collection.E
ListStore. remove(DNStateManager sm, int index, int size)
Method to remove an element from the List.V
MapStore. remove(DNStateManager sm, Object key)
Method to remove a value from the Map.void
MapStore. 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).boolean
PersistableRelationStore. remove(DNStateManager sm1)
Method to remove the relation from the provided object.boolean
CollectionStore. removeAll(DNStateManager sm, Collection elements, int size)
Method to remove a collection of elements from the collection.boolean
ListStore. removeAll(DNStateManager ownerSM, Collection elements, int size, int[] elementIndices)
Method to remove a collection of elements from the collection.boolean
ArrayStore. set(DNStateManager sm, Object array)
Method to set the elements in the array.Object
ListStore. set(DNStateManager ownerSM, int index, Object element, boolean allowDependentField)
Method to update an element at a position in the List.int
ArrayStore. size(DNStateManager sm)
Accessor for the size of the array.int
CollectionStore. size(DNStateManager sm)
Accessor for the size of the collection.List
ListStore. subList(DNStateManager ownerSM, int from, int to)
Accessor for a sublist of elements between from and to indices.void
CollectionStore. update(DNStateManager sm, Collection coll)
Method to update the collection to be the supplied collection of elements.default void
MapStore. update(DNStateManager sm, Map<K,V> map)
Method to update the map to be the supplied map of entries.boolean
PersistableRelationStore. update(DNStateManager sm1, DNStateManager sm2)
Method to update the relation for the first object to relate to the second object.boolean
CollectionStore. updateEmbeddedElement(DNStateManager sm, E element, int fieldNumber, Object value)
Method to update en embedded element in the collection.boolean
MapStore. updateEmbeddedKey(DNStateManager sm, Object key, int fieldNumber, Object newValue)
Method to update an embedded key in the map.boolean
MapStore. 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 DNStateManager
ArrayList. ownerSM
protected DNStateManager
BitSet. ownerSM
protected DNStateManager
Collection. ownerSM
protected DNStateManager
Date. ownerSM
protected DNStateManager
GregorianCalendar. ownerSM
protected DNStateManager
HashMap. ownerSM
protected DNStateManager
HashSet. ownerSM
protected DNStateManager
Hashtable. ownerSM
protected DNStateManager
LinkedHashMap. ownerSM
protected DNStateManager
LinkedHashSet. ownerSM
protected DNStateManager
LinkedList. ownerSM
protected DNStateManager
List. ownerSM
protected DNStateManager
Map. ownerSM
protected DNStateManager
PriorityQueue. ownerSM
protected DNStateManager
Properties. ownerSM
protected DNStateManager
Queue. ownerSM
protected DNStateManager
Set. ownerSM
protected DNStateManager
SortedMap. ownerSM
protected DNStateManager
SortedSet. ownerSM
protected DNStateManager
SqlDate. ownerSM
protected DNStateManager
SqlTime. ownerSM
protected DNStateManager
SqlTimestamp. ownerSM
protected DNStateManager
Stack. ownerSM
protected DNStateManager
TreeMap. ownerSM
protected DNStateManager
TreeSet. ownerSM
protected DNStateManager
Vector. ownerSM
Constructors 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 aSqlTimestamp
object 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.
-