|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.state.JDOStateManagerFactory
public class JDOStateManagerFactory
Factory for ObjectProviders of type JDOStateManager. This type of ObjectProvider is used where we want all features of persistence, and we are using the JDO byte-code enhancement contract.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localiser for messages. |
| Constructor Summary | |
|---|---|
protected |
JDOStateManagerFactory()
|
| Method Summary | |
|---|---|
static JDOStateManagerFactory |
getInstance()
|
ObjectProvider |
newForCachedPC(ExecutionContext ec,
Object id,
CachedPC cachedPC)
Constructor to create an ObjectProvider for an object taken from the L2 cache with the specified id. |
ObjectProvider |
newForDetached(ExecutionContext ec,
Object pc,
Object id,
Object version)
Constructor for creating an ObjectProvider to manage a persistable object in detached state. |
ObjectProvider |
newForEmbedded(ExecutionContext ec,
AbstractClassMetaData cmd,
ObjectProvider ownerOP,
int ownerFieldNumber)
Constructs an ObjectProvider 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. |
ObjectProvider |
newForEmbedded(ExecutionContext ec,
Object pc,
boolean copyPc,
ObjectProvider ownerOP,
int ownerFieldNumber)
Constructs an ObjectProvider to manage a persistable instance that will be EMBEDDED/SERIALISED into another persistable object. |
ObjectProvider |
newForHollow(ExecutionContext ec,
Class pcClass,
Object id)
Constructs an ObjectProvider to manage a hollow instance having the given object ID. |
ObjectProvider |
newForHollow(ExecutionContext ec,
Class pcClass,
Object id,
FieldValues fv)
Constructs an ObjectProvider to manage a recently populated hollow instance having the given object ID and the given field values. |
ObjectProvider |
newForHollowPopulatedAppId(ExecutionContext ec,
Class pcClass,
FieldValues fv)
Deprecated. Use newForHollowPopulated instead |
ObjectProvider |
newForHollowPreConstructed(ExecutionContext ec,
Object id,
Object pc)
Constructs an ObjectProvider to manage a hollow instance having the given object ID. |
ObjectProvider |
newForPersistentClean(ExecutionContext ec,
Object id,
Object pc)
Constructs an ObjectProvider to manage the specified persistent instance having the given object ID. |
ObjectProvider |
newForPersistentNew(ExecutionContext ec,
Object pc,
FieldValues preInsertChanges)
Constructs an ObjectProvider to manage a transient instance that is becoming newly persistent. |
ObjectProvider |
newForPNewToBeDeleted(ExecutionContext ec,
Object pc)
Constructor for creating an ObjectProvider to manage a persistable object that is not persistent yet is about to be deleted. |
ObjectProvider |
newForTransactionalTransient(ExecutionContext ec,
Object pc)
Constructs an ObjectProvider to manage a transactional-transient instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
| Constructor Detail |
|---|
protected JDOStateManagerFactory()
| Method Detail |
|---|
public static JDOStateManagerFactory getInstance()
public ObjectProvider newForHollow(ExecutionContext ec,
Class pcClass,
Object id)
newForHollow in interface ObjectProviderFactoryec - the ExecutionContextpcClass - the class of the new instance to be created.id - the identity of the object.
public ObjectProvider newForHollow(ExecutionContext ec,
Class pcClass,
Object id,
FieldValues fv)
newForHollow in interface ObjectProviderFactoryec - ExecutionContextpcClass - the class of the new instance to be created.id - the identity of the object.fv - the initial field values of the object.
public ObjectProvider newForHollowPreConstructed(ExecutionContext ec,
Object id,
Object pc)
newForHollowPreConstructed in interface ObjectProviderFactoryec - ExecutionContextid - the identity of the object.pc - The object that is hollow that we are going to manage
public ObjectProvider newForHollowPopulatedAppId(ExecutionContext ec,
Class pcClass,
FieldValues fv)
newForHollowPopulatedAppId in interface ObjectProviderFactoryec - ExecutionContextpcClass - the class of the new instance to be created.fv - the initial field values of the object.
public ObjectProvider newForPersistentClean(ExecutionContext ec,
Object id,
Object pc)
newForPersistentClean in interface ObjectProviderFactoryec - ExecutionContextid - the identity of the object.pc - The object that is persistent that we are going to manage
public ObjectProvider newForEmbedded(ExecutionContext ec,
Object pc,
boolean copyPc,
ObjectProvider ownerOP,
int ownerFieldNumber)
newForEmbedded in interface ObjectProviderFactoryec - ExecutionContextpc - The persistable to manage (see copyPc also)copyPc - Whether the SM should manage a copy of the passed PC or that oneownerOP - Owner ObjectProviderownerFieldNumber - Field number in owner object where this is stored
public ObjectProvider newForEmbedded(ExecutionContext ec,
AbstractClassMetaData cmd,
ObjectProvider ownerOP,
int ownerFieldNumber)
newForEmbedded in interface ObjectProviderFactoryec - ExecutionContextcmd - Meta-data for the class that this is an instance of.ownerOP - Owner ObjectProviderownerFieldNumber - Field number in owner object where this is stored
public ObjectProvider newForPersistentNew(ExecutionContext ec,
Object pc,
FieldValues preInsertChanges)
newForPersistentNew in interface ObjectProviderFactoryec - ExecutionContextpc - the instance being make persistent.preInsertChanges - Any changes to make before inserting
public ObjectProvider newForTransactionalTransient(ExecutionContext ec,
Object pc)
newForTransactionalTransient in interface ObjectProviderFactoryec - ExecutionContextpc - the instance being make persistent.
public ObjectProvider newForDetached(ExecutionContext ec,
Object pc,
Object id,
Object version)
newForDetached in interface ObjectProviderFactoryec - ExecutionContextpc - the detached objectid - the identity of the object.version - the detached version
public ObjectProvider newForPNewToBeDeleted(ExecutionContext ec,
Object pc)
newForPNewToBeDeleted in interface ObjectProviderFactoryec - Execution Contextpc - the object being deleted from persistence
public ObjectProvider newForCachedPC(ExecutionContext ec,
Object id,
CachedPC cachedPC)
newForCachedPC in interface ObjectProviderFactoryec - ExecutionContextid - Id to assign to the persistable objectcachedPC - CachedPC object from the L2 cache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||