Package lumis.content.table
Enum ContentTableSource.LockStrategy
- java.lang.Object
-
- java.lang.Enum<ContentTableSource.LockStrategy>
-
- lumis.content.table.ContentTableSource.LockStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentTableSource.LockStrategy>
- Enclosing class:
- ContentTableSource
@StableMinor(version="14.0", sinceVersion="10.4") public static enum ContentTableSource.LockStrategy extends Enum<ContentTableSource.LockStrategy>
Strategy on how to handleContentLocale
's locks during content operation.- Since:
- 10.4.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
- See Also:
ContentTableSource.addData(Object)
,ContentTableSource.updateData(Object, LockStrategy)
,ContentLocale.getLockType()
,ContentLocale.getLockedBy()
,ContentLocale.getLockedDate()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK
The existent locks are to be checked.CHECK_AND_RELEASE_AUTOMATIC_ON_COMMIT
Same asCHECK
, but if thelock type
isLockType.AUTOMATIC
, it is to be released after the operation is done and the current transaction is committed.IGNORE
The locks are to be ignored and unaffected.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentTableSource.LockStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentTableSource.LockStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final ContentTableSource.LockStrategy IGNORE
The locks are to be ignored and unaffected.- Since:
- 10.4.0
-
CHECK
public static final ContentTableSource.LockStrategy CHECK
The existent locks are to be checked. If locked by a user that is not the current user, the operation must not be executed. Otherwise the operation is executed and the lock is left unaffected.- Since:
- 10.4.0
-
CHECK_AND_RELEASE_AUTOMATIC_ON_COMMIT
public static final ContentTableSource.LockStrategy CHECK_AND_RELEASE_AUTOMATIC_ON_COMMIT
Same asCHECK
, but if thelock type
isLockType.AUTOMATIC
, it is to be released after the operation is done and the current transaction is committed.- Since:
- 10.4.0
-
-
Method Detail
-
values
public static ContentTableSource.LockStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentTableSource.LockStrategy c : ContentTableSource.LockStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentTableSource.LockStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-