|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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:
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 |
---|
public abstract java.lang.String method
public abstract java.lang.String workingCopyMethod
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |