public interface ObjectProviderFactory
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disconnectObjectProvider(ObjectProvider op)
Method to be called when an ObjectProvider is disconnected (finished with).
|
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 ObjectProvider instances to manage persistable objects 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 fv)
Constructs an ObjectProvider to manage a transient instance that is becoming newly persistent.
|
ObjectProvider |
newForPNewToBeDeleted(ExecutionContext ec,
Object pc)
Constructor for creating ObjectProvider instances to manage persistable objects that are not persistent yet
are about to be deleted.
|
ObjectProvider |
newForTransactionalTransient(ExecutionContext ec,
Object pc)
Constructs an ObjectProvider to manage a transactional-transient instance.
|
void close()
void disconnectObjectProvider(ObjectProvider op)
op
- The ObjectProviderObjectProvider newForHollow(ExecutionContext ec, Class pcClass, Object id)
ec
- the ExecutionContextpcClass
- the class of the new instance to be created.id
- the JDO identity of the object.ObjectProvider newForHollowPreConstructed(ExecutionContext ec, Object id, Object pc)
ec
- ExecutionContextid
- the JDO identity of the object.pc
- The object that is hollow that we are going to manageObjectProvider newForHollow(ExecutionContext ec, Class pcClass, 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.ObjectProvider newForPersistentClean(ExecutionContext ec, Object id, 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 manageObjectProvider newForHollowPopulatedAppId(ExecutionContext ec, Class pcClass, FieldValues fv)
ec
- ExecutionContextpcClass
- the class of the new instance to be created.fv
- the initial field values of the object.ObjectProvider newForEmbedded(ExecutionContext ec, Object pc, boolean copyPc, ObjectProvider ownerOP, int ownerFieldNumber)
ec
- 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 storedObjectProvider newForEmbedded(ExecutionContext ec, AbstractClassMetaData cmd, ObjectProvider ownerOP, int ownerFieldNumber)
ec
- ExecutionContextcmd
- Meta-data for the class that this is an instance of.ownerOP
- Owner ObjectProviderownerFieldNumber
- Field number in owner object where this is storedObjectProvider newForPersistentNew(ExecutionContext ec, Object pc, FieldValues fv)
ec
- ExecutionContextpc
- the instance being make persistent.fv
- Any changes to make before insertingObjectProvider newForTransactionalTransient(ExecutionContext ec, Object pc)
ec
- ExecutionContextpc
- the instance being make persistent.ObjectProvider newForDetached(ExecutionContext ec, Object pc, Object id, Object version)
ec
- ExecutionContextpc
- the detached objectid
- the JDO identity of the object.version
- the detached versionObjectProvider newForPNewToBeDeleted(ExecutionContext ec, Object pc)
ec
- Execution Contextpc
- the object being deleted from persistenceObjectProvider newForCachedPC(ExecutionContext ec, Object id, CachedPC cachedPC)
ec
- ExecutionContextid
- Id to assign to the persistable objectcachedPC
- CachedPC object from the L2 cacheCopyright © 2014. All Rights Reserved.