|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
public abstract class AbstractCopyPolicy
Purpose: Allows customization of how an object is cloned. This class defines common behavior that allows a subclass to be used and set on a descriptor to provide a special cloning routine for how an object is cloned in a unit of work.
Constructor Summary | |
---|---|
AbstractCopyPolicy()
|
Method Summary | |
---|---|
abstract Object |
buildClone(Object domainObject,
Session session)
Return a shallow clone of the object for usage with object copying, or unit of work backup cloning. |
Object |
buildWorkingCopyClone(Object domainObject,
Session session)
By default use the buildClone. |
Object |
buildWorkingCopyCloneFromRow(Record row,
ObjectBuildingQuery query,
Object primaryKey,
UnitOfWork uow)
By default create a new instance. |
Object |
clone()
INTERNAL: Clones the CopyPolicy |
void |
initialize(Session session)
Do nothing by default. |
void |
setDescriptor(ClassDescriptor descriptor)
Set the descriptor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.descriptors.copying.CopyPolicy |
---|
buildsNewInstance |
Constructor Detail |
---|
public AbstractCopyPolicy()
Method Detail |
---|
public abstract Object buildClone(Object domainObject, Session session) throws DescriptorException
CopyPolicy
buildClone
in interface CopyPolicy
DescriptorException
public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException
buildWorkingCopyClone
in interface CopyPolicy
DescriptorException
public Object buildWorkingCopyCloneFromRow(Record row, ObjectBuildingQuery query, Object primaryKey, UnitOfWork uow) throws DescriptorException
buildWorkingCopyCloneFromRow
in interface CopyPolicy
DescriptorException
public Object clone()
clone
in interface CopyPolicy
clone
in class Object
public void initialize(Session session) throws DescriptorException
initialize
in interface CopyPolicy
DescriptorException
public void setDescriptor(ClassDescriptor descriptor)
setDescriptor
in interface CopyPolicy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |