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.typePredNone
public static final TypeSearchability FULL
DatabaseMetaData.typeSearchable
public static final TypeSearchability CHAR
WHERE ... LIKE
DatabaseMetaData.typePredChar
public static final TypeSearchability BASIC
WHERE ... LIKE
DatabaseMetaData.typePredBasic
public 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 © 2016 JBoss by Red Hat. All rights reserved.