- java.lang.Object
-
- java.lang.Enum<AdbaType>
-
- jdk.incubator.sql2.AdbaType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
Identifies the generic SQL typeARRAY
.BIGINT
Identifies the generic SQL typeBIGINT
.BINARY
Identifies the generic SQL typeBINARY
.BIT
Identifies the generic SQL typeBIT
.BLOB
Identifies the generic SQL typeBLOB
.BOOLEAN
Identifies the generic SQL typeBOOLEAN
.CHAR
Identifies the generic SQL typeCHAR
.CLOB
Identifies the generic SQL typeCLOB
.DATALINK
Identifies the generic SQL typeDATALINK
.DATE
Identifies the generic SQL typeDATE
.DECIMAL
Identifies the generic SQL typeDECIMAL
.DISTINCT
Identifies the generic SQL typeDISTINCT
.DOUBLE
Identifies the generic SQL typeDOUBLE
.FLOAT
Identifies the generic SQL typeFLOAT
.INTEGER
Identifies the generic SQL typeINTEGER
.JAVA_OBJECT
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.LONG_NVARCHAR
Identifies the generic SQL typeLONG NVARCHAR
.LONG_VARBINARY
Identifies the generic SQL typeLONG VARBINARY
.LONG_VARCHAR
Identifies the generic SQL typeLONG VARCHAR
.NCHAR
Identifies the generic SQL typeNCHAR
.NCLOB
Identifies the generic SQL typeNCLOB
.NULL
Identifies the generic SQL valueNULL
.NUMERIC
Identifies the generic SQL typeNUMERIC
.NVARCHAR
Identifies the generic SQL typeNVARCHAR
.OTHER
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.REAL
Identifies the generic SQL typeREAL
.REF
Identifies the generic SQL typeREF
.REF_CURSOR
Identifies the generic SQL typeREF CURSOR
.ROWID
Identifies the SQL typeROWID
.SMALLINT
Identifies the generic SQL typeSMALLINT
.SQLXML
Identifies the generic SQL typeSQLXML
.STRUCT
Identifies the generic SQL typeSTRUCT
.TIME
Identifies the generic SQL typeTIME
.TIME_WITH_TIME_ZONE
Identifies the generic SQL typeTIME WITH TIME ZONE
.TIMESTAMP
Identifies the generic SQL typeTIMESTAMP
.TIMESTAMP_WITH_TIME_ZONE
Identifies the generic SQL typeTIMESTAMP WITH TIME ZONE
.TINYINT
Identifies the generic SQL typeTINYINT
.VARBINARY
Identifies the generic SQL typeVARBINARY
.VARCHAR
Identifies the generic SQL typeVARCHAR
.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>
javaType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getJavaType()
java.lang.String
getName()
java.lang.String
getVendor()
static AdbaType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AdbaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT
public static final AdbaType BIT
Identifies the generic SQL typeBIT
.
-
TINYINT
public static final AdbaType TINYINT
Identifies the generic SQL typeTINYINT
.
-
SMALLINT
public static final AdbaType SMALLINT
Identifies the generic SQL typeSMALLINT
.
-
INTEGER
public static final AdbaType INTEGER
Identifies the generic SQL typeINTEGER
.
-
BIGINT
public static final AdbaType BIGINT
Identifies the generic SQL typeBIGINT
.
-
FLOAT
public static final AdbaType FLOAT
Identifies the generic SQL typeFLOAT
.
-
REAL
public static final AdbaType REAL
Identifies the generic SQL typeREAL
.
-
DOUBLE
public static final AdbaType DOUBLE
Identifies the generic SQL typeDOUBLE
.
-
NUMERIC
public static final AdbaType NUMERIC
Identifies the generic SQL typeNUMERIC
.
-
DECIMAL
public static final AdbaType DECIMAL
Identifies the generic SQL typeDECIMAL
.
-
CHAR
public static final AdbaType CHAR
Identifies the generic SQL typeCHAR
.
-
VARCHAR
public static final AdbaType VARCHAR
Identifies the generic SQL typeVARCHAR
.
-
LONG_VARCHAR
public static final AdbaType LONG_VARCHAR
Identifies the generic SQL typeLONG VARCHAR
.
-
DATE
public static final AdbaType DATE
Identifies the generic SQL typeDATE
.
-
TIME
public static final AdbaType TIME
Identifies the generic SQL typeTIME
.
-
TIMESTAMP
public static final AdbaType TIMESTAMP
Identifies the generic SQL typeTIMESTAMP
.
-
BINARY
public static final AdbaType BINARY
Identifies the generic SQL typeBINARY
.
-
VARBINARY
public static final AdbaType VARBINARY
Identifies the generic SQL typeVARBINARY
.
-
LONG_VARBINARY
public static final AdbaType LONG_VARBINARY
Identifies the generic SQL typeLONG VARBINARY
.
-
NULL
public static final AdbaType NULL
Identifies the generic SQL valueNULL
.
-
OTHER
public static final AdbaType OTHER
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
-
JAVA_OBJECT
public static final AdbaType JAVA_OBJECT
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
-
DISTINCT
public static final AdbaType DISTINCT
Identifies the generic SQL typeDISTINCT
.
-
STRUCT
public static final AdbaType STRUCT
Identifies the generic SQL typeSTRUCT
.
-
ARRAY
public static final AdbaType ARRAY
Identifies the generic SQL typeARRAY
.
-
BLOB
public static final AdbaType BLOB
Identifies the generic SQL typeBLOB
.
-
CLOB
public static final AdbaType CLOB
Identifies the generic SQL typeCLOB
.
-
REF
public static final AdbaType REF
Identifies the generic SQL typeREF
.
-
DATALINK
public static final AdbaType DATALINK
Identifies the generic SQL typeDATALINK
.
-
BOOLEAN
public static final AdbaType BOOLEAN
Identifies the generic SQL typeBOOLEAN
.
-
ROWID
public static final AdbaType ROWID
Identifies the SQL typeROWID
.
-
NCHAR
public static final AdbaType NCHAR
Identifies the generic SQL typeNCHAR
.
-
NVARCHAR
public static final AdbaType NVARCHAR
Identifies the generic SQL typeNVARCHAR
.
-
LONG_NVARCHAR
public static final AdbaType LONG_NVARCHAR
Identifies the generic SQL typeLONG NVARCHAR
.
-
NCLOB
public static final AdbaType NCLOB
Identifies the generic SQL typeNCLOB
.
-
SQLXML
public static final AdbaType SQLXML
Identifies the generic SQL typeSQLXML
.
-
REF_CURSOR
public static final AdbaType REF_CURSOR
Identifies the generic SQL typeREF CURSOR
.
-
TIME_WITH_TIME_ZONE
public static final AdbaType TIME_WITH_TIME_ZONE
Identifies the generic SQL typeTIME WITH TIME ZONE
.
-
TIMESTAMP_WITH_TIME_ZONE
public static final AdbaType TIMESTAMP_WITH_TIME_ZONE
Identifies the generic SQL typeTIMESTAMP WITH TIME ZONE
.
-
-
Method Detail
-
values
public static AdbaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AdbaType c : AdbaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdbaType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getJavaType
public java.lang.Class<?> getJavaType()
- Specified by:
getJavaType
in interfaceSqlType
- Returns:
- a Java type that best represents values of this SQL type
-
-