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.
| Modifier and Type | Field and Description |
|---|---|
| protected ClassDescriptor |
| Access | Constructor and Description |
|---|---|
| protected |
| descriptor | back to summary |
|---|---|
| protected ClassDescriptor descriptor | |
| AbstractCopyPolicy | back to summary |
|---|---|
| protected AbstractCopyPolicy() | |
| buildClone | back to summary |
|---|---|
| public abstract Object buildClone(Object domainObject, Session session) throws DescriptorException Redeclares org. Doc from org. Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.
| |
| buildWorkingCopyClone | back to summary |
|---|---|
| public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException Implements org. By default use the buildClone.
| |
| buildWorkingCopyCloneFromRow | back to summary |
|---|---|
| public Object buildWorkingCopyCloneFromRow(DataRecord row, ObjectBuildingQuery query, Object primaryKey, UnitOfWork uow) throws DescriptorException Implements org. By default create a new instance.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements org. INTERNAL: Clones the CopyPolicy
| |
| getDescriptor | back to summary |
|---|---|
| protected ClassDescriptor getDescriptor() Return the descriptor. | |
| initialize | back to summary |
|---|---|
| public void initialize(Session session) throws DescriptorException Implements org. Do nothing by default.
| |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(ClassDescriptor descriptor) Implements org. Set the descriptor.
| |