Package org.h2.api
Class H2Type
java.lang.Object
org.h2.api.H2Type
- All Implemented Interfaces:
SQLType
Data types of H2.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final H2Type
The BIGINT data type.static final H2Type
The BINARY data type.static final H2Type
The BINARY LARGE OBJECT data type.static final H2Type
The BOOLEAN data typestatic final H2Type
The CHARACTER data type.static final H2Type
The CHARACTER LARGE OBJECT data type.static final H2Type
The DATE data type.static final H2Type
The DECFLOAT data type.static final H2Type
The DOUBLE PRECISION data type.static final H2Type
The ENUM data type.static final H2Type
The GEOMETRY data type.static final H2Type
The INTEGER data type.static final H2Type
The INTERVAL DAY data type.static final H2Type
The INTERVAL DAY TO HOUR data type.static final H2Type
The INTERVAL DAY TO MINUTE data type.static final H2Type
The INTERVAL DAY TO SECOND data type.static final H2Type
The INTERVAL HOUR data type.static final H2Type
The INTERVAL HOUR TO MINUTE data type.static final H2Type
The INTERVAL HOUR TO SECOND data type.static final H2Type
The INTERVAL MINUTE data type.static final H2Type
The INTERVAL MINUTE TO SECOND data type.static final H2Type
The INTERVAL MONTH data type.static final H2Type
The INTERVAL SECOND data type.static final H2Type
The INTERVAL YEAR data type.static final H2Type
The INTERVAL YEAR TO MONTH data type.static final H2Type
The JAVA_OBJECT data type.static final H2Type
The JSON data type.static final H2Type
The NUMERIC data type.static final H2Type
The REAL data type.static final H2Type
The SMALLINT data type.static final H2Type
The TIME data type.static final H2Type
The TIME WITH TIME ZONE data type.static final H2Type
The TIMESTAMP data type.static final H2Type
The TIMESTAMP WITH TIME ZONE data type.static final H2Type
The TINYINT data type.static final H2Type
The UUID data type.static final H2Type
The BINARY VARYING data type.static final H2Type
The CHARACTER VARYING data type.static final H2Type
The VARCHAR_IGNORECASE data type. -
Method Summary
-
Field Details
-
CHAR
The CHARACTER data type. -
VARCHAR
The CHARACTER VARYING data type. -
CLOB
The CHARACTER LARGE OBJECT data type. -
VARCHAR_IGNORECASE
The VARCHAR_IGNORECASE data type. -
BINARY
The BINARY data type. -
VARBINARY
The BINARY VARYING data type. -
BLOB
The BINARY LARGE OBJECT data type. -
BOOLEAN
The BOOLEAN data type -
TINYINT
The TINYINT data type. -
SMALLINT
The SMALLINT data type. -
INTEGER
The INTEGER data type. -
BIGINT
The BIGINT data type. -
NUMERIC
The NUMERIC data type. -
REAL
The REAL data type. -
DOUBLE_PRECISION
The DOUBLE PRECISION data type. -
DECFLOAT
The DECFLOAT data type. -
DATE
The DATE data type. -
TIME
The TIME data type. -
TIME_WITH_TIME_ZONE
The TIME WITH TIME ZONE data type. -
TIMESTAMP
The TIMESTAMP data type. -
TIMESTAMP_WITH_TIME_ZONE
The TIMESTAMP WITH TIME ZONE data type. -
INTERVAL_YEAR
The INTERVAL YEAR data type. -
INTERVAL_MONTH
The INTERVAL MONTH data type. -
INTERVAL_DAY
The INTERVAL DAY data type. -
INTERVAL_HOUR
The INTERVAL HOUR data type. -
INTERVAL_MINUTE
The INTERVAL MINUTE data type. -
INTERVAL_SECOND
The INTERVAL SECOND data type. -
INTERVAL_YEAR_TO_MONTH
The INTERVAL YEAR TO MONTH data type. -
INTERVAL_DAY_TO_HOUR
The INTERVAL DAY TO HOUR data type. -
INTERVAL_DAY_TO_MINUTE
The INTERVAL DAY TO MINUTE data type. -
INTERVAL_DAY_TO_SECOND
The INTERVAL DAY TO SECOND data type. -
INTERVAL_HOUR_TO_MINUTE
The INTERVAL HOUR TO MINUTE data type. -
INTERVAL_HOUR_TO_SECOND
The INTERVAL HOUR TO SECOND data type. -
INTERVAL_MINUTE_TO_SECOND
The INTERVAL MINUTE TO SECOND data type. -
JAVA_OBJECT
The JAVA_OBJECT data type. -
ENUM
The ENUM data type. -
GEOMETRY
The GEOMETRY data type. -
JSON
The JSON data type. -
UUID
The UUID data type.
-
-
Method Details
-
array
Returns ARRAY data type with the specified component type.- Parameters:
componentType
- the type of elements- Returns:
- ARRAY data type
-
row
Returns ROW data type with specified types of fields and default names.- Parameters:
fieldTypes
- the type of fields- Returns:
- ROW data type
-
getName
-
getVendor
-
getVendorTypeNumber
Returns the vendor specific type number for the data type. The returned value is actual only for the current version of H2.- Specified by:
getVendorTypeNumber
in interfaceSQLType
- Returns:
- the vendor specific data type
-
toString
-