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


Class AllFieldsLockingPolicy

  extended by oracle.toplink.descriptors.FieldsLockingPolicy
      extended by oracle.toplink.descriptors.AllFieldsLockingPolicy
All Implemented Interfaces:, java.lang.Cloneable, oracle.toplink.internal.descriptors.OptimisticLockingPolicy

public class AllFieldsLockingPolicy
extends FieldsLockingPolicy

Purpose: An implementation of the OptimisticLockingPolicy interface. This policy compares every field in the table in the WHERE clause when doing an update or a delete. If any field has been changed, an optimistic locking exception will be thrown.

NOTE: This policy can only be used inside a unit of work.

TopLink 2.1
See Also:
Serialized Form

Constructor Summary
          Create a new all fields locking policy.
Method Summary
Methods inherited from class oracle.toplink.descriptors.FieldsLockingPolicy
isCascaded, isStoredInCache
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AllFieldsLockingPolicy()
Create a new all fields locking policy. A field locking policy is based on locking on all 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, 2012, Oracle. All Rights Reserved.