Package org.hibernate.type.descriptor.jdbc
package org.hibernate.type.descriptor.jdbc
Defines handling of almost the full range of standard JDBC-defined SQL data types. Each JDBC type is described by an implementation
of
JdbcType
.
See this discussion of the role JdbcType
plays in basic type mappings.
We omit certain JDBC types here solely because Hibernate does not use them itself, not due to any inability to provide proper descriptors for them. There are no descriptors for:
Nor is there a generic descriptor for STRUCT
defined
in this package, but dialect-specific implementations are provided elsewhere.
On the other hand, we actually extend the set of JDBC types by enumerating
additional types in SqlTypes
.
-
ClassDescriptionExtension contract for JdbcType implementations that understand how to adjust themselves relative to where/how they are used (e.g.Descriptor for
ARRAY
handling.Factory forArrayJdbcType
.BasicBinder<J>Convenience base implementation ofValueBinder
Convenience base implementation ofValueExtractor
Descriptor forBIGINT
handling.Descriptor forBINARY
handling.Descriptor forBLOB
handling.Descriptor forBOOLEAN
handling.Descriptor forCHAR
handling.Descriptor forCLOB
handling.Descriptor forDATE
handling.Descriptor forDECIMAL
handling.Descriptor forDOUBLE
handling.Descriptor forDuration
.Represents anenum
type for databases like MySQL and H2.Descriptor forFLOAT
handling.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Descriptor for handling Instant directly through the JDBC driverDescriptor forINTEGER
handling.Common marker interface for mapping Java Time objects directly through the JDBC driver.A formatter object for rendering values of a given Java type as SQL literals of a certain JDBC/SQL type.Descriptor for the SQL/JDBC side of a value mapping.Factory for anyJdbcType
which is parameterized by a secondJdbcType
, the "element" type.Information pertaining to JDBC type families.A parameter object that helps determine theSQL/JDBC type
recommended by the JDBC spec (explicitly or implicitly) for a given Java type.Maintains the JDBC recommended mappings for JDBC type-code to/from Java Class as defined in Appendix B: Data Type Conversion Tables of the JDBC Specification.Specialized type mapping forJSON_ARRAY
and the JSON ARRAY SQL data type.Factory forJsonArrayJdbcType
.Specialized type mapping forJSON_ARRAY
and the JSON SQL data type.Factory forJsonArrayJdbcType
.Specialized type mapping forJSON
and the JSON SQL data type.A Helper for serializing and deserializing JSON, based on anEmbeddableMappingType
.Specialized type mapping forJSON
and the JSON SQL data type.Descriptor for handling LocalDate directly through the JDBC driverDescriptor for handling LocalDateTime directly through the JDBC driverDescriptor for handling LocalTime directly through the JDBC driverDescriptor forLONGNVARCHAR
handling.Descriptor forLONGVARBINARY
handling.Descriptor forLONGVARCHAR
handling.Manages a mapping between nationalized and non-nationalized variants of JDBC types.Descriptor forNCHAR
handling.Descriptor forNCLOB
handling.Descriptor for binding nulls with Types.NULLDescriptor forNUMERIC
handling.Descriptor forNVARCHAR
handling.Descriptor for binding objects using any JDBC type code.Descriptor for binding objects, but binding nulls with Types.VARBINARYDescriptor for binding objects, but binding nulls with Types.NULLDescriptor for binding objects, but binding nulls with the resolved parameter typeDescriptor for handling OffsetDateTime directly through the JDBC driverDescriptor for handling OffsetTime directly through the JDBC driverSpecialized type mapping forJSON
and the BLOB SQL data type for Oracle.Specialized type mapping forJSON
and the BLOB SQL data type for Oracle.Represents anenum
type for databases like MySQL and H2.Deprecated.useFloatJdbcType
Descriptor forROWID
handling.Descriptor forSMALLINT
handling.AJdbcType
with a fixed SQL type name.A Helper for serializing and deserializing struct, based on anEmbeddableMappingType
.Descriptor forTIMESTAMP_WITH_TIMEZONE
handling.Descriptor forTIME
handling.Descriptor forTIMESTAMP
handling.Descriptor forTIMESTAMP_UTC
handling.Descriptor forTIMESTAMP_UTC
handling.Descriptor forTIMESTAMP_UTC
handling.Descriptor forTIMESTAMP_WITH_TIMEZONE
handling.Descriptor forTIME_UTC
handling.Descriptor forTIME_UTC
handling.Descriptor forTIME_WITH_TIMEZONE
handling.Descriptor forTINYINT
handling.Specialized type mapping forUUID
and the UUID SQL data type.Descriptor forVARBINARY
handling.Descriptor forVARCHAR
handling.Specialized type mapping forUUID
and the UUID SQL data type, which binds and reads the UUID through JDBCgetString
/setString
methods.Specialized type mapping forXML_ARRAY
and the XML ARRAY SQL data type.Factory forXmlArrayJdbcType
.Specialized type mapping forXML_ARRAY
and the XML ARRAY SQL data type.Factory forXmlAsStringArrayJdbcType
.Specialized type mapping forSQLXML
and the XML SQL data type.A Helper for serializing and deserializing XML, based on anEmbeddableMappingType
.Specialized type mapping forSQLXML
and the XML SQL data type.Descriptor for handling ZonedDateTime directly through the JDBC driver
H2JsonJdbcType
instead