Package org.opennms.core.criteria
Enum Criteria.LockType
- java.lang.Object
-
- java.lang.Enum<Criteria.LockType>
-
- org.opennms.core.criteria.Criteria.LockType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Criteria.LockType>
- Enclosing class:
- Criteria
public static enum Criteria.LockType extends java.lang.Enum<Criteria.LockType>
This enum provides all of the locking modes that are available in the ORM implementation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
OPTIMISTIC
OPTIMISTIC_FORCE_INCREMENT
PESSIMISTIC_FORCE_INCREMENT
PESSIMISTIC_READ
PESSIMISTIC_WRITE
READ
UPGRADE_NOWAIT
WRITE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Criteria.LockType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Criteria.LockType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Criteria.LockType NONE
-
READ
public static final Criteria.LockType READ
-
UPGRADE_NOWAIT
public static final Criteria.LockType UPGRADE_NOWAIT
-
WRITE
public static final Criteria.LockType WRITE
-
OPTIMISTIC
public static final Criteria.LockType OPTIMISTIC
-
OPTIMISTIC_FORCE_INCREMENT
public static final Criteria.LockType OPTIMISTIC_FORCE_INCREMENT
-
PESSIMISTIC_READ
public static final Criteria.LockType PESSIMISTIC_READ
-
PESSIMISTIC_WRITE
public static final Criteria.LockType PESSIMISTIC_WRITE
-
PESSIMISTIC_FORCE_INCREMENT
public static final Criteria.LockType PESSIMISTIC_FORCE_INCREMENT
-
-
Method Detail
-
values
public static Criteria.LockType[] 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 (Criteria.LockType c : Criteria.LockType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Criteria.LockType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-