|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.state.ObjectProviderFactory
public class ObjectProviderFactory
Factory of ObjectProviders. Should not be used by org.datanucleus.store.* classes
| Nested Class Summary | |
|---|---|
protected static class |
ObjectProviderFactory.Initialization
|
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localiser for messages. |
| Constructor Summary | |
|---|---|
ObjectProviderFactory()
|
|
| Method Summary | |
|---|---|
static ObjectProvider |
newForCachedPC(ExecutionContext ec,
java.lang.Object id,
CachedPC cachedPC)
Constructor to create a ObjectProvider for an object taken from the L2 cache with the specified id. |
static ObjectProvider |
newForDetached(ExecutionContext ec,
java.lang.Object pc,
java.lang.Object id,
java.lang.Object version)
Constructor for creating SM instances to manage persistable objects in detached state. |
static ObjectProvider |
newForEmbedded(ExecutionContext ec,
java.lang.Object pc,
boolean copyPc)
Constructs a state manager to manage a persistable instance that will be EMBEDDED/SERIALISED into another persistable object. |
static ObjectProvider |
newForHollow(ExecutionContext ec,
java.lang.Class pcClass,
java.lang.Object id)
Constructs a state manager to manage a hollow instance having the given object ID. |
static ObjectProvider |
newForHollowPopulated(ExecutionContext ec,
java.lang.Class pcClass,
java.lang.Object id,
FieldValues fv)
Constructs a state manager to manage a recently populated hollow instance having the given object ID and the given field values. |
static ObjectProvider |
newForHollowPopulatedAppId(ExecutionContext ec,
java.lang.Class pcClass,
FieldValues2 fv)
Constructs a state manager to manage a hollow (or pclean) instance having the given FieldValues. |
static ObjectProvider |
newForHollowPreConstructed(ExecutionContext ec,
java.lang.Object id,
java.lang.Object pc)
Constructs a state manager to manage a hollow instance having the given object ID. |
static ObjectProvider |
newForPersistentClean(ExecutionContext ec,
java.lang.Object id,
java.lang.Object pc)
Constructs a state manager to manage the specified persistent instance having the given object ID. |
static ObjectProvider |
newForPersistentNew(ExecutionContext ec,
java.lang.Object pc,
FieldValues preInsertChanges)
Constructs a state manager to manage a transient instance that is becoming newly persistent. |
static ObjectProvider |
newForPNewToBeDeleted(ExecutionContext ec,
java.lang.Object pc)
Constructor for creating SM instances to manage persistable objects that are not persistent yet are about to be deleted. |
static ObjectProvider |
newForTransactionalTransient(ExecutionContext ec,
java.lang.Object pc)
Constructs a state manager 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 |
|---|
public ObjectProviderFactory()
| Method Detail |
|---|
public static ObjectProvider newForHollow(ExecutionContext ec,
java.lang.Class pcClass,
java.lang.Object id)
ec - the ExecutionContextpcClass - the class of the new instance to be created.id - the JDO identity of the object.
public static ObjectProvider newForHollowPreConstructed(ExecutionContext ec,
java.lang.Object id,
java.lang.Object pc)
ec - ExecutionContextid - the JDO identity of the object.pc - The object that is hollow that we are going to manage
public static ObjectProvider newForHollowPopulated(ExecutionContext ec,
java.lang.Class pcClass,
java.lang.Object id,
FieldValues fv)
ec - ExecutionContextpcClass - the class of the new instance to be created.id - the JDO identity of the object.fv - the initial field values of the object.
public static ObjectProvider newForPersistentClean(ExecutionContext ec,
java.lang.Object id,
java.lang.Object pc)
ec - the execution context controlling this state manager.id - the JDO identity of the object.pc - The object that is persistent that we are going to manage
public static ObjectProvider newForHollowPopulatedAppId(ExecutionContext ec,
java.lang.Class pcClass,
FieldValues2 fv)
ec - ExecutionContextpcClass - the class of the new instance to be created.fv - the initial field values of the object.
public static ObjectProvider newForEmbedded(ExecutionContext ec,
java.lang.Object pc,
boolean copyPc)
ec - ExecutionContextpc - The persistable to manage (see copyPc also)copyPc - Whether the SM should manage a copy of the passed PC or that one
public static ObjectProvider newForPersistentNew(ExecutionContext ec,
java.lang.Object pc,
FieldValues preInsertChanges)
ec - ExecutionContextpc - the instance being make persistent.preInsertChanges - Any changes to make before inserting
public static ObjectProvider newForTransactionalTransient(ExecutionContext ec,
java.lang.Object pc)
ec - ExecutionContextpc - the instance being make persistent.
public static ObjectProvider newForDetached(ExecutionContext ec,
java.lang.Object pc,
java.lang.Object id,
java.lang.Object version)
ec - ExecutionContextpc - the detached objectid - the JDO identity of the object.version - the detached version
public static ObjectProvider newForPNewToBeDeleted(ExecutionContext ec,
java.lang.Object pc)
ec - Execution Contextpc - the object being deleted from persistence
public static ObjectProvider newForCachedPC(ExecutionContext ec,
java.lang.Object id,
CachedPC cachedPC)
ec - 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 | |||||||||