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.
- See Also:
-
ClassDescriptionExtension contract for JdbcType implementations that understand how to adjust themselves relative to where/how they are used (e.g.Descriptor for
ARRAYhandling.Factory forArrayJdbcType.BasicBinder<J>Convenience base implementation ofValueBinderConvenience base implementation ofValueExtractorDescriptor forBIGINThandling.Descriptor forBINARYhandling.Descriptor forBLOBhandling.Descriptor forBOOLEANhandling.Descriptor forCHARhandling.Descriptor forCLOBhandling.Descriptor forDATEhandling.Descriptor forDECIMALhandling.Descriptor forDOUBLEhandling.Descriptor forDuration.Represents anenumtype for databases like MySQL and H2.Descriptor forFLOAThandling.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 forINTEGERhandling.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 anyJdbcTypewhich is parameterized by a secondJdbcType, the "element" type.Information pertaining to JDBC type families.A parameter object that helps determine theSQL/JDBC typerecommended 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_ARRAYand the JSON ARRAY SQL data type.Factory forJsonArrayJdbcType.Specialized type mapping forJSON_ARRAYand the JSON SQL data type.Factory forJsonArrayJdbcType.Specialized type mapping forJSONand the JSON SQL data type.A Helper for serializing and deserializing JSON, based on anEmbeddableMappingType.Specialized type mapping forJSONand 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 forLONGNVARCHARhandling.Descriptor forLONGVARBINARYhandling.Descriptor forLONGVARCHARhandling.Manages a mapping between nationalized and non-nationalized variants of JDBC types.Descriptor forNCHARhandling.Descriptor forNCLOBhandling.Descriptor for binding nulls with Types.NULLDescriptor forNUMERIChandling.Descriptor forNVARCHARhandling.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 forJSONand the BLOB SQL data type for Oracle.Specialized type mapping forJSONand the BLOB SQL data type for Oracle.Represents anenumtype for databases like MySQL and H2.Deprecated.useFloatJdbcTypeDescriptor forROWIDhandling.Descriptor forSMALLINThandling.AJdbcTypewith a fixed SQL type name.A Helper for serializing and deserializing struct, based on anEmbeddableMappingType.Descriptor forTIMESTAMP_WITH_TIMEZONEhandling.Descriptor forTIMEhandling.Descriptor forTIMESTAMPhandling.Descriptor forTIMESTAMP_UTChandling.Descriptor forTIMESTAMP_UTChandling.Descriptor forTIMESTAMP_UTChandling.Descriptor forTIMESTAMP_WITH_TIMEZONEhandling.Descriptor forTIME_UTChandling.Descriptor forTIME_UTChandling.Descriptor forTIME_WITH_TIMEZONEhandling.Descriptor forTINYINThandling.Specialized type mapping forUUIDand the UUID SQL data type.Descriptor forVARBINARYhandling.Descriptor forVARCHARhandling.Specialized type mapping forUUIDand the UUID SQL data type, which binds and reads the UUID through JDBCgetString/setStringmethods.Specialized type mapping forXML_ARRAYand the XML ARRAY SQL data type.Factory forXmlArrayJdbcType.Specialized type mapping forXML_ARRAYand the XML ARRAY SQL data type.Factory forXmlAsStringArrayJdbcType.Specialized type mapping forSQLXMLand the XML SQL data type.A Helper for serializing and deserializing XML, based on anEmbeddableMappingType.Specialized type mapping forSQLXMLand the XML SQL data type.Descriptor for handling ZonedDateTime directly through the JDBC driver
H2JsonJdbcTypeinstead