EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference

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:

See Also:
CloneCopyPolicy, CloneCopyPolicy, CopyPolicy
Author:
tware

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


EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference