Skip Headers

# Configuring Copy Policy

Previous

Next

The TopLink unit of work feature must be able to produce an exact copy (clone) persistent objects. Table: Configuring Descriptors with a Copy Policy summarizes which descriptors support a copy policy.

Configuring Descriptors with a Copy Policy

Descriptor | Using TopLink Workbench | Using Java
--- | --- | ---
Relational Descriptors |  |
Object-Relational Descriptors |  |
EIS Descriptors |  |
XML Descriptors |  |

TopLink supports the following two ways of copying objects:

- Instantiation policy: By default, TopLink creates a new copy of an object by using the currently configured instantiation policy (see "Configuring Instantiation Policy").

- Method: TopLink creates a new copy of an object by calling a method on the object that you specify. For example, you can specify the object's `clone` method (or any other appropriate method on the object).