Enum Class JDBCType
- All Implemented Interfaces:
Serializable, Comparable<JDBCType>, Constable, SQLType
-
Nested Class Summary
Nested classes/interfaces declared in class Enum
Enum.EnumDesc<E>Modifier and TypeClassDescriptionstatic final classEnum.EnumDesc<E extends Enum<E>>A nominal descriptor for anenumconstant. -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIdentifies the generic SQL typeARRAY.Identifies the generic SQL typeBIGINT.Identifies the generic SQL typeBINARY.Identifies the generic SQL typeBIT.Identifies the generic SQL typeBLOB.Identifies the generic SQL typeBOOLEAN.Identifies the generic SQL typeCHAR.Identifies the generic SQL typeCLOB.Identifies the generic SQL typeDATALINK.Identifies the generic SQL typeDATE.Identifies the generic SQL typeDECFLOAT.Identifies the generic SQL typeDECIMAL.Identifies the generic SQL typeDISTINCT.Identifies the generic SQL typeDOUBLE.Identifies the generic SQL typeFLOAT.Identifies the generic SQL typeINTEGER.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.Identifies the generic SQL typeJSON.Identifies the generic SQL typeLONGNVARCHAR.Identifies the generic SQL typeLONGVARBINARY.Identifies the generic SQL typeLONGVARCHAR.Identifies the generic SQL typeNCHAR.Identifies the generic SQL typeNCLOB.Identifies the generic SQL valueNULL.Identifies the generic SQL typeNUMERIC.Identifies the generic SQL typeNVARCHAR.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.Identifies the generic SQL typeREAL.Identifies the generic SQL typeREF.Identifies the generic SQL typeREF_CURSOR.Identifies the SQL typeROWID.Identifies the generic SQL typeSMALLINT.Identifies the generic SQL typeSQLXML.Identifies the generic SQL typeSTRUCT.Identifies the generic SQL typeTIME.Identifies the generic SQL typeTIME_WITH_TIMEZONE.Identifies the generic SQL typeTIMESTAMP.Identifies the generic SQL typeTIMESTAMP_WITH_TIMEZONE.Identifies the generic SQL typeTINYINT.Identifies the generic SQL typeVARBINARY.Identifies the generic SQL typeVARCHAR. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns theSQLTypename that represents a SQL data type.Returns the name of the vendor that supports this data type.Returns the vendor specific type number for the data type.static JDBCTypevalueOf(int type) Returns theJDBCTypethat corresponds to the specifiedTypesvaluestatic JDBCTypeReturns the enum constant of this class with the specified name.static JDBCType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods declared in class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfModifier and TypeMethodDescriptionprotected final Objectclone()Throws CloneNotSupportedException.final intCompares this enum with the specified object for order.final Optional<Enum.EnumDesc<JDBCType>> Returns an enum descriptorEnumDescfor this instance, if one can be constructed, or an emptyOptionalif one cannot be.final booleanReturns true if the specified object is equal to this enum constant.protected final voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Returns the Class object corresponding to this enum constant's enum type.final inthashCode()Returns a hash code for this enum constant.final Stringname()Returns the name of this enum constant, exactly as declared in its enum declaration.final intordinal()Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).toString()Returns the name of this enum constant, as contained in the declaration.static <T extends Enum<T>>
TReturns the enum constant of the specified enum class with the specified name.Methods declared in class Object
getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionfinal Class<?> getClass()Returns the runtime class of thisObject.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Enum Constant Details
-
BIT
Identifies the generic SQL typeBIT. -
TINYINT
Identifies the generic SQL typeTINYINT. -
SMALLINT
Identifies the generic SQL typeSMALLINT. -
INTEGER
Identifies the generic SQL typeINTEGER. -
BIGINT
Identifies the generic SQL typeBIGINT. -
FLOAT
Identifies the generic SQL typeFLOAT. -
REAL
Identifies the generic SQL typeREAL. -
DOUBLE
Identifies the generic SQL typeDOUBLE. -
NUMERIC
Identifies the generic SQL typeNUMERIC. -
DECIMAL
Identifies the generic SQL typeDECIMAL. -
CHAR
Identifies the generic SQL typeCHAR. -
VARCHAR
Identifies the generic SQL typeVARCHAR. -
LONGVARCHAR
Identifies the generic SQL typeLONGVARCHAR. -
DATE
Identifies the generic SQL typeDATE. -
TIME
Identifies the generic SQL typeTIME. -
TIMESTAMP
Identifies the generic SQL typeTIMESTAMP. -
BINARY
Identifies the generic SQL typeBINARY. -
VARBINARY
Identifies the generic SQL typeVARBINARY. -
LONGVARBINARY
Identifies the generic SQL typeLONGVARBINARY. -
NULL
Identifies the generic SQL valueNULL. -
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
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
Identifies the generic SQL typeDISTINCT. -
STRUCT
Identifies the generic SQL typeSTRUCT. -
ARRAY
Identifies the generic SQL typeARRAY. -
BLOB
Identifies the generic SQL typeBLOB. -
CLOB
Identifies the generic SQL typeCLOB. -
REF
Identifies the generic SQL typeREF. -
DATALINK
Identifies the generic SQL typeDATALINK. -
BOOLEAN
Identifies the generic SQL typeBOOLEAN. -
ROWID
Identifies the SQL typeROWID. -
NCHAR
Identifies the generic SQL typeNCHAR. -
NVARCHAR
Identifies the generic SQL typeNVARCHAR. -
LONGNVARCHAR
Identifies the generic SQL typeLONGNVARCHAR. -
NCLOB
Identifies the generic SQL typeNCLOB. -
SQLXML
Identifies the generic SQL typeSQLXML. -
REF_CURSOR
Identifies the generic SQL typeREF_CURSOR. -
TIME_WITH_TIMEZONE
Identifies the generic SQL typeTIME_WITH_TIMEZONE. -
TIMESTAMP_WITH_TIMEZONE
Identifies the generic SQL typeTIMESTAMP_WITH_TIMEZONE. -
DECFLOAT
-
JSON
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
getVendor
-
getVendorTypeNumber
Returns the vendor specific type number for the data type.- Specified by:
getVendorTypeNumberin interfaceSQLType- Returns:
- An Integer representing the data type. For
JDBCType, the value will be the same value as inTypesfor the data type.
-
valueOf
Returns theJDBCTypethat corresponds to the specifiedTypesvalue- Parameters:
type-Typesvalue- Returns:
- The
JDBCTypeconstant - Throws:
IllegalArgumentException- if this enum type has no constant with the specifiedTypesvalue- See Also:
-