|
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 OptimisticLocking
The OptimisticLocking annotation is used to specify the type of optimistic locking TopLink should use when updating or deleting entities. An optimistic-locking specification is supported on an Entity or MappedSuperclass annotation.
org.eclipse.persistence.annotations.OptimisticLockingType.
Optional Element Summary | |
---|---|
boolean |
cascade
(Optional) Specify where the optimistic locking policy should cascade lock. |
Column[] |
selectedColumns
(Optional) For an optimistic locking policy of type SELECTED_COLUMNS, this annotation member becomes a (Required) field. |
OptimisticLockingType |
type
(Optional) The type of optimistic locking policy to use. |
public abstract OptimisticLockingType type
public abstract Column[] selectedColumns
public abstract boolean cascade
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |