/** * PUBLIC: Set the field names to lock on. All fields in this list will be * compared when Updating. If the value of any of the fields does not match * the value in memory, an OptimisticLockException will be thrown. * * Note: An Automatic update will not be done on this field, only a * comparison occurs. */ public void setLockFieldNames(List<String> lockFieldNames) { for (String name : lockFieldNames) { addLockFieldName(name); } }
/** * PUBLIC: Set the field names to lock on. All fields in this list will be * compared when Updating. If the value of any of the fields does not match * the value in memory, an OptimisticLockException will be thrown. * * Note: An Automatic update will not be done on this field, only a * comparison occurs. */ public void setLockFieldNames(List<String> lockFieldNames) { for (String name : lockFieldNames) { addLockFieldName(name); } }
/** * PUBLIC: * Set the field names to lock on. All fields in this list will be compared when Updating. * If the value of any of the fields does not match the value in memory, an * OptimisticLockException will be thrown. * * Note: An Automatic update will not be done on this field, only a comparison occurs. */ public void setLockFieldNames(Vector lockFieldNames) { for (Enumeration enumtr = lockFieldNames.elements(); enumtr.hasMoreElements();) { addLockFieldName((String)enumtr.nextElement()); } }
throw ValidationException.optimisticLockingSelectedColumnNamesNotSpecified(descriptor.getJavaClass()); } else { policy.addLockFieldName(selectedColumn.getName());