Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.annotations
Annotation Type CloneCopyPolicy


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface CloneCopyPolicy

A CloneCopyPolicy is used to set an org.eclipse.persistence.descriptors.copying.CloneCopyPolicy on an Entity. A CloneCopyPolicy must specify at one or both of the "method" or "workingCopyMethod". "workingCopyMethod" is used to clone objects that will be returned to the user as they are registered in EclipseLink's transactional mechanism, the UnitOfWork. "method" will be used for the clone that is used for comparison in conjunction with EclipseLink's DeferredChangeDetectionPolicy A CloneCopyPolicy should be specified on an Entity, MappedSuperclass or Embeddable. Example:

Author:
tware
See Also:
CloneCopyPolicy, CloneCopyPolicy, CopyPolicy

Required Element Summary
 java.lang.String method
          (Optional) Either method or workingCopyMethod must be specified this defines a method that will be used to create a clone that will be used for comparison by EclipseLink's DeferredChangeDetectionPolicy
 java.lang.String workingCopyMethod
          (Optional) Either method or workingCopyMethod must be specified this defines a method that will be used to create a clone that will be used to create the object returned when registering an Object in an EclipseLink UnitOfWork

 

Element Detail

method

public abstract java.lang.String method
(Optional) Either method or workingCopyMethod must be specified this defines a method that will be used to create a clone that will be used for comparison by EclipseLink's DeferredChangeDetectionPolicy

workingCopyMethod

public abstract java.lang.String workingCopyMethod
(Optional) Either method or workingCopyMethod must be specified this defines a method that will be used to create a clone that will be used to create the object returned when registering an Object in an EclipseLink UnitOfWork

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.