Interface OptimisticLockUtils.ValidatedUpdateOperation<T>
- Type Parameters:
T
- The type of entity you wish to validate and update.
- All Superinterfaces:
OptimisticLockUtils.UpdateOperation<T>
- Enclosing class:
- OptimisticLockUtils
public static interface OptimisticLockUtils.ValidatedUpdateOperation<T>
extends OptimisticLockUtils.UpdateOperation<T>
Checks if the state of the entity is valid then performs an update operation on an entity within an optimistic
lock aware transaction.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether or not theOptimisticLockUtils.UpdateOperation.update(Object)
operation is still valid given the current state of the entity.Methods inherited from interface org.broadleafcommerce.common.util.OptimisticLockUtils.UpdateOperation
update
-
Method Details
-
isValid
Check whether or not theOptimisticLockUtils.UpdateOperation.update(Object)
operation is still valid given the current state of the entity.- Parameters:
t
- The entity as represented in the database during the current transaction.- Returns:
- true if the entity is in a valid state to perform the
OptimisticLockUtils.UpdateOperation.update(Object)
operation, false otherwise.
-