Enum JdbcType
- java.lang.Object
-
- java.lang.Enum<JdbcType>
-
- net.sf.jkniv.whinstone.types.JdbcType
-
- All Implemented Interfaces:
Serializable,Comparable<JdbcType>,ColumnType
public enum JdbcType extends Enum<JdbcType> implements ColumnType
The class that defines the constants that are used to identify generic SQL types, called JDBC types. The int values are identical from java.sql.Types
- Since:
- 0.6.0
- Author:
- Alisson Gomes
- See Also:
Types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.BIGINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIGINT.BINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBINARY.BITThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIT.BLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.BOOLEANThe constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.CHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCHAR.CLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOB.DATALINKThe constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeDATALINK.DATEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDATE.DECIMALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDECIMAL.DISTINCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.DOUBLEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDOUBLE.FLOATThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeFLOAT.INTEGERThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeINTEGER.JAVA_OBJECTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.LONGNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.LONGVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARBINARY.LONGVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARCHAR.NCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHARNCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.NULLThe constant in the Java programming language that identifies the generic SQL valueNULL.NUMERICThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNUMERIC.NVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.OTHERThe constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.REALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREAL.REFThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.REF_CURSORThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF CURSOR.ROWIDThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWIDSMALLINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSMALLINT.SQLXMLThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.STRUCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.TIMEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME.TIME_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME WITH TIMEZONE.TIMESTAMPThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP.TIMESTAMP_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP WITH TIMEZONE.TINYINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTINYINT.VARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARBINARY.VARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARCHAR.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBinary()booleanisBlob()booleanisClob()booleanisDate()booleanisTime()booleanisTimestamp()intvalue()static ColumnTypevalueOf(int jdbcTypeValue)Returns the enum constant of this type with the specified name.static JdbcTypevalueOf(String name)Returns the enum constant of this type with the specified name.static JdbcType[]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 interface net.sf.jkniv.whinstone.types.ColumnType
name
-
-
-
-
Enum Constant Detail
-
BIT
public static final JdbcType BIT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BIT.
-
TINYINT
public static final JdbcType TINYINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TINYINT.
-
SMALLINT
public static final JdbcType SMALLINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
SMALLINT.
-
INTEGER
public static final JdbcType INTEGER
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
INTEGER.
-
BIGINT
public static final JdbcType BIGINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BIGINT.
-
FLOAT
public static final JdbcType FLOAT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
FLOAT.
-
REAL
public static final JdbcType REAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
REAL.
-
DOUBLE
public static final JdbcType DOUBLE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DOUBLE.
-
NUMERIC
public static final JdbcType NUMERIC
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
NUMERIC.
-
DECIMAL
public static final JdbcType DECIMAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DECIMAL.
-
CHAR
public static final JdbcType CHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
CHAR.
-
VARCHAR
public static final JdbcType VARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
VARCHAR.
-
LONGVARCHAR
public static final JdbcType LONGVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
LONGVARCHAR.
-
DATE
public static final JdbcType DATE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DATE.
-
TIME
public static final JdbcType TIME
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TIME.
-
TIMESTAMP
public static final JdbcType TIMESTAMP
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TIMESTAMP.
-
BINARY
public static final JdbcType BINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BINARY.
-
VARBINARY
public static final JdbcType VARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
VARBINARY.
-
LONGVARBINARY
public static final JdbcType LONGVARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
LONGVARBINARY.
-
NULL
public static final JdbcType NULL
The constant in the Java programming language that identifies the generic SQL value
NULL.
-
OTHER
public static final JdbcType OTHER
The constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.
-
JAVA_OBJECT
public static final JdbcType JAVA_OBJECT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.- Since:
- 1.2
-
DISTINCT
public static final JdbcType DISTINCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.- Since:
- 1.2
-
STRUCT
public static final JdbcType STRUCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.- Since:
- 1.2
-
ARRAY
public static final JdbcType ARRAY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.- Since:
- 1.2
-
BLOB
public static final JdbcType BLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.- Since:
- 1.2
-
CLOB
public static final JdbcType CLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOB.- Since:
- 1.2
-
REF
public static final JdbcType REF
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.- Since:
- 1.2
-
DATALINK
public static final JdbcType DATALINK
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeDATALINK.- Since:
- 1.4
-
BOOLEAN
public static final JdbcType BOOLEAN
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.- Since:
- 1.4
-
ROWID
public static final JdbcType ROWID
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWID- Since:
- 1.6
-
NCHAR
public static final JdbcType NCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHAR- Since:
- 1.6
-
NVARCHAR
public static final JdbcType NVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.- Since:
- 1.6
-
LONGNVARCHAR
public static final JdbcType LONGNVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.- Since:
- 1.6
-
NCLOB
public static final JdbcType NCLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.- Since:
- 1.6
-
SQLXML
public static final JdbcType SQLXML
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.- Since:
- 1.6
-
REF_CURSOR
public static final JdbcType REF_CURSOR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF CURSOR.- Since:
- 1.8
-
TIME_WITH_TIMEZONE
public static final JdbcType TIME_WITH_TIMEZONE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME WITH TIMEZONE.- Since:
- 1.8
-
TIMESTAMP_WITH_TIMEZONE
public static final JdbcType TIMESTAMP_WITH_TIMEZONE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP WITH TIMEZONE.- Since:
- 1.8
-
-
Method Detail
-
values
public static JdbcType[] 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 (JdbcType c : JdbcType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JdbcType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()
- Specified by:
valuein interfaceColumnType
-
isBinary
public boolean isBinary()
- Specified by:
isBinaryin interfaceColumnType
-
isBlob
public boolean isBlob()
- Specified by:
isBlobin interfaceColumnType
-
isClob
public boolean isClob()
- Specified by:
isClobin interfaceColumnType
-
isDate
public boolean isDate()
- Specified by:
isDatein interfaceColumnType
-
isTimestamp
public boolean isTimestamp()
- Specified by:
isTimestampin interfaceColumnType
-
isTime
public boolean isTime()
- Specified by:
isTimein interfaceColumnType
-
valueOf
public static ColumnType valueOf(int jdbcTypeValue)
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:
jdbcTypeValue- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-