|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.descriptors.FieldsLockingPolicy oracle.toplink.descriptors.SelectedFieldsLockingPolicy
public class SelectedFieldsLockingPolicy
Purpose: An implementation of the OptimisticLockingPolicy interface. This policy compares selected fields 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 that the fields specified must be mapped and not be primary keys.
NOTE: This policy can only be used inside a unit of work.
Constructor Summary | |
---|---|
SelectedFieldsLockingPolicy()
Create a new selected fields locking policy. |
Method Summary | |
---|---|
void |
addLockFieldName(java.lang.String fieldName)
Add a fieldname to lock on. |
void |
setLockFieldNames(java.util.Vector lockFieldNames)
Set the field names to lock on. |
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 SelectedFieldsLockingPolicy()
Method Detail |
---|
public void addLockFieldName(java.lang.String fieldName)
public void setLockFieldNames(java.util.Vector lockFieldNames)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |