Enum Class SchemaType
- All Implemented Interfaces:
Serializable,Comparable<SchemaType>,Constable
Enum for known SQL types.
- Version:
- $Id: SchemaType.java 1917240 2024-04-21 13:22:54Z tv $
- Author:
- Martin Poeschl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJDBC Datatype ARRAY.JDBC Datatype BIGINT.JDBC Datatype BINARY.JDBC Datatype BIT.JDBC Datatype BLOB.JDBC Datatype CHAR interpreted as Boolean.JDBC Datatype INTEGER interpreted as Boolean.JDBC Datatype CHAR.JDBC Datatype CLOB.JDBC Datatype DATE.JDBC Datatype DECIMAL.JDBC Datatype DISTINCT.JDBC Datatype DOUBLE.JDBC Datatype FLOAT.JDBC Datatype INTEGER.JDBC Datatype JAVA_OBJECT.JDBC Datatype LONGVARBINARY.JDBC Datatype LONGVARCHAR.JDBC Datatype NULL.JDBC Datatype NUMERIC.JDBC Datatype OTHER.JDBC Datatype REAL.JDBC Datatype REF.JDBC Datatype SMALLINT.JDBC Datatype STRUCT.JDBC Datatype TIME.JDBC Datatype TIMESTAMP.JDBC Datatype TINYINT.JDBC Datatype VARBINARY.JDBC Datatype VARCHAR. -
Method Summary
Modifier and TypeMethodDescriptionReturns the corresponding jdbc type.static SchemaTypeReturns the enum constant of this class with the specified name.static SchemaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BIT
JDBC Datatype BIT. -
TINYINT
JDBC Datatype TINYINT. -
SMALLINT
JDBC Datatype SMALLINT. -
INTEGER
JDBC Datatype INTEGER. -
BIGINT
JDBC Datatype BIGINT. -
FLOAT
JDBC Datatype FLOAT. -
REAL
JDBC Datatype REAL. -
NUMERIC
JDBC Datatype NUMERIC. -
DECIMAL
JDBC Datatype DECIMAL. -
CHAR
JDBC Datatype CHAR. -
VARCHAR
JDBC Datatype VARCHAR. -
LONGVARCHAR
JDBC Datatype LONGVARCHAR. -
DATE
JDBC Datatype DATE. -
TIME
JDBC Datatype TIME. -
TIMESTAMP
JDBC Datatype TIMESTAMP. -
BINARY
JDBC Datatype BINARY. -
VARBINARY
JDBC Datatype VARBINARY. -
LONGVARBINARY
JDBC Datatype LONGVARBINARY. -
NULL
JDBC Datatype NULL. -
OTHER
JDBC Datatype OTHER. -
JAVA_OBJECT
JDBC Datatype JAVA_OBJECT. -
DISTINCT
JDBC Datatype DISTINCT. -
STRUCT
JDBC Datatype STRUCT. -
ARRAY
JDBC Datatype ARRAY. -
BLOB
JDBC Datatype BLOB. -
CLOB
JDBC Datatype CLOB. -
REF
JDBC Datatype REF. -
BOOLEANINT
JDBC Datatype INTEGER interpreted as Boolean. -
BOOLEANCHAR
JDBC Datatype CHAR interpreted as Boolean. -
DOUBLE
JDBC Datatype DOUBLE.
-
-
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
-
getJdbcType
Returns the corresponding jdbc type.- Returns:
- the corresponding jdbc type, or null if no corresponding type exists.
-