Enum BestRowIdentifier.Scope
java.lang.Object
java.lang.Enum<BestRowIdentifier.Scope>
com.github.jinahya.database.metadata.bind.BestRowIdentifier.Scope
- All Implemented Interfaces:
Serializable
,Comparable<BestRowIdentifier.Scope>
,java.lang.constant.Constable
- Enclosing class:
- BestRowIdentifier
Constants for "SCOPE" column values.
- Author:
- Jin Kwon <onacit_at_gmail.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA value forDatabaseMetaData.bestRowSession
(2).A value forDatabaseMetaData.bestRowTemporary
(0).A value forDatabaseMetaData.bestRowTransaction
(1). -
Method Summary
Modifier and TypeMethodDescriptionint
static BestRowIdentifier.Scope
Returns the enum constant of this type with the specified name.static BestRowIdentifier.Scope
valueOfScope
(int scope) Finds the value for specifiedBestRowIdentifier.COLUMN_LABEL_SCOPE
column value.static BestRowIdentifier.Scope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BEST_ROW_TEMPORARY
A value forDatabaseMetaData.bestRowTemporary
(0). -
BEST_ROW_TRANSACTION
A value forDatabaseMetaData.bestRowTransaction
(1). -
BEST_ROW_SESSION
A value forDatabaseMetaData.bestRowSession
(2).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
valueOfScope
Finds the value for specifiedBestRowIdentifier.COLUMN_LABEL_SCOPE
column value.- Parameters:
scope
- the value ofBestRowIdentifier.COLUMN_LABEL_SCOPE
column to match.- Returns:
- the value matched.
- Throws:
IllegalStateException
- when no value matched.
-
fieldValueAsInt
public int fieldValueAsInt()
-