Package io.ebean
Enum Query.ForUpdate
- java.lang.Object
-
- java.lang.Enum<Query.ForUpdate>
-
- io.ebean.Query.ForUpdate
-
- All Implemented Interfaces:
Serializable
,Comparable<Query.ForUpdate>
public static enum Query.ForUpdate extends Enum<Query.ForUpdate>
For update mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE
Standard For update clause.NOWAIT
For update with No Wait option.SKIPLOCKED
For update with Skip Locked option.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Query.ForUpdate
valueOf(String name)
Returns the enum constant of this type with the specified name.static Query.ForUpdate[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASE
public static final Query.ForUpdate BASE
Standard For update clause.
-
NOWAIT
public static final Query.ForUpdate NOWAIT
For update with No Wait option.
-
SKIPLOCKED
public static final Query.ForUpdate SKIPLOCKED
For update with Skip Locked option.
-
-
Method Detail
-
values
public static Query.ForUpdate[] 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 (Query.ForUpdate c : Query.ForUpdate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Query.ForUpdate 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
-
-