|
Oracle Application Server TopLink API Reference 10g (9.0.4.3) B10491-02 | |||||||||
| 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.ChangedFieldsLockingPolicy
Purpose: An implementation of the OptimisticLockingPolicy interface. This policy compares only the changed fields in the WHERE clause when doing an update. If any field has been changed, an optimistic locking exception will be thrown. A delete will only compare the primary key.
NOTE: This policy can only be used inside a unit of work.
| Constructor Summary | |
ChangedFieldsLockingPolicy()PUBLIC: Create a new changed fields locking policy. | |
| Method Summary | |
void |
addLockValuesToTranslationRow(ObjectLevelModifyQuery query)INTERNAL: Values to be included in the locking mechanism are added to the translation row. |
Expression |
buildDeleteExpression(oracle.toplink.internal.helper.DatabaseTable table, Expression mainExpression, DatabaseRow row)INTERNAL: When given an expression, this method will return a new expression with the optimistic locking values included. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChangedFieldsLockingPolicy()
| Method Detail |
public void addLockValuesToTranslationRow(ObjectLevelModifyQuery query)
addLockValuesToTranslationRow in interface oracle.toplink.internal.descriptors.OptimisticLockingPolicyaddLockValuesToTranslationRow in class FieldsLockingPolicypublic Expression buildDeleteExpression(oracle.toplink.internal.helper.DatabaseTable table, Expression mainExpression, DatabaseRow row)
buildDeleteExpression in interface oracle.toplink.internal.descriptors.OptimisticLockingPolicybuildDeleteExpression in class FieldsLockingPolicy
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||