Enum Class JdbcLockingApplication
- All Implemented Interfaces:
Serializable, Comparable<JdbcLockingApplication>, Constable
@SPI
@Incubating(since="6.0",
group="sql-execution")
public enum JdbcLockingApplication
extends Enum<JdbcLockingApplication>
Records which stage owns pessimistic locking for a JDBC select plan.
Exactly one stage must own a requested lock. Execution finalization uses this value to avoid applying raw-SQL or follow-on locking to a plan whose SQL AST translator already rendered locking syntax.
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLocking is performed by follow-on actions after the primary select.The select does not request pessimistic locking.Locking must still be attempted against the completed SQL string before execution.Locking syntax was rendered while translating the SQL AST. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcLockingApplicationReturns the enum constant of this class with the specified name.static JdbcLockingApplication[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The select does not request pessimistic locking. -
RENDERED
Locking syntax was rendered while translating the SQL AST. -
RAW_SQL
Locking must still be attempted against the completed SQL string before execution. -
FOLLOW_ON
Locking is performed by follow-on actions after the primary select.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-