|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TypeSearchability>
org.hibernate.engine.jdbc.internal.TypeSearchability
public enum TypeSearchability
Describes the searchability of a data type as reported by the JDBC driver.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TypeSearchability NONE
DatabaseMetaData.typePredNonepublic static final TypeSearchability FULL
DatabaseMetaData.typeSearchablepublic static final TypeSearchability CHAR
WHERE ... LIKE
DatabaseMetaData.typePredCharpublic static final TypeSearchability BASIC
WHERE ... LIKE
DatabaseMetaData.typePredBasic| Method Detail |
|---|
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 name
NullPointerException - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||