Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.descriptors
Class FieldsLockingPolicy

java.lang.Object
  extended byoracle.toplink.descriptors.FieldsLockingPolicy

All Implemented Interfaces:
java.lang.Cloneable, oracle.toplink.internal.descriptors.OptimisticLockingPolicy, java.io.Serializable
Direct Known Subclasses:
AllFieldsLockingPolicy, ChangedFieldsLockingPolicy, SelectedFieldsLockingPolicy

public abstract class FieldsLockingPolicy
extends java.lang.Object
implements oracle.toplink.internal.descriptors.OptimisticLockingPolicy

Purpose: An abstract superclass of some implementations of the OptimisticLockingPolicy interface. All of the subclasses of this class implement OptimisticLocking based on mapped fields in the object. These fields are only compared and not modified. Any modification (incrementing etc..) must be handled by the application.

Since:
TopLink 2.1
See Also:
AllFieldsLockingPolicy, ChangedFieldsLockingPolicy, SelectedFieldsLockingPolicy, Serialized Form

Constructor Summary
FieldsLockingPolicy()
PUBLIC: Create a new field locking policy.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

FieldsLockingPolicy

public FieldsLockingPolicy()
PUBLIC: Create a new field locking policy. A field locking policy is based on locking on a subset of fields by comparing with their previous values to detect field-level collisions. Note: the unit of work must be used for all updates when using field locking.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.