Enum TypeInfo.Searchable
- All Implemented Interfaces:
Serializable
,Comparable<TypeInfo.Searchable>
,java.lang.constant.Constable
- Enclosing class:
- TypeInfo
Constants for the "SEARCHABLE" column value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA value forDatabaseMetaData.typePredBasic
(2).A value forDatabaseMetaData.typePredChar
(1).A value forDatabaseMetaData.typePredNone
(0).A value forDatabaseMetaData.typeSearchable
(3). -
Method Summary
Modifier and TypeMethodDescriptionint
static TypeInfo.Searchable
Returns the enum constant of this type with the specified name.static TypeInfo.Searchable
valueOfSearchable
(int searchable) Finds the value for specifiedTypeInfo.COLUMN_LABEL_SEARCHABLE
column value.static TypeInfo.Searchable[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_PRED_NONE
A value forDatabaseMetaData.typePredNone
(0). -
TYPE_PRED_CHAR
A value forDatabaseMetaData.typePredChar
(1). -
TYPE_PRED_BASIC
A value forDatabaseMetaData.typePredBasic
(2). -
TYPE_SEARCHABLE
A value forDatabaseMetaData.typeSearchable
(3).
-
-
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
-
valueOfSearchable
Finds the value for specifiedTypeInfo.COLUMN_LABEL_SEARCHABLE
column value.- Parameters:
searchable
- theTypeInfo.COLUMN_LABEL_SEARCHABLE
column value to match.- Returns:
- the value matched.
- Throws:
IllegalStateException
- when no value matched.
-
fieldValueAsInt
public int fieldValueAsInt()
-