public enum TypeSearchability extends Enum<TypeSearchability>
| Enum Constant and Description |
|---|
BASIC
Type is supported only in {@code WHERE ...
|
CHAR
Type is valid only in {@code WHERE ...
|
FULL
Type is fully searchable
|
NONE
Type is not searchable.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeSearchability |
interpret(short code)
Based on the code retrieved from
DatabaseMetaData.getTypeInfo() for the SEARCHABLE
column, return the appropriate enum. |
static TypeSearchability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeSearchability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeSearchability NONE
DatabaseMetaData.typePredNonepublic static final TypeSearchability FULL
DatabaseMetaData.typeSearchablepublic static final TypeSearchability CHAR
WHERE ... LIKEDatabaseMetaData.typePredCharpublic static final TypeSearchability BASIC
WHERE ... LIKEDatabaseMetaData.typePredBasicpublic static TypeSearchability[] values()
for (TypeSearchability c : TypeSearchability.values()) System.out.println(c);
public static TypeSearchability valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TypeSearchability interpret(short code)
DatabaseMetaData.getTypeInfo() for the SEARCHABLE
column, return the appropriate enum.code - The retrieved code value.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.