Class JdbcTypeRegistry
java.lang.Object
org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry
- All Implemented Interfaces:
Serializable
,JdbcTypeBaseline.BaselineTarget
public class JdbcTypeRegistry
extends Object
implements JdbcTypeBaseline.BaselineTarget, Serializable
A registry mapping
JDBC type codes
to implementations of the JdbcType
interface.- Since:
- 5.3
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescriptor
(int typeCode, JdbcType jdbcType) void
addDescriptor
(JdbcType jdbcType) void
addDescriptorIfAbsent
(int typeCode, JdbcType jdbcType) void
addDescriptorIfAbsent
(JdbcType jdbcType) void
addTypeConstructor
(int jdbcTypeCode, JdbcTypeConstructor jdbcTypeConstructor) void
addTypeConstructor
(JdbcTypeConstructor jdbcTypeConstructor) findAggregateDescriptor
(String typeName) findDescriptor
(int jdbcTypeCode) findSqlTypedDescriptor
(String sqlTypeName) getConstructor
(int jdbcTypeCode) getDescriptor
(int jdbcTypeCode) boolean
hasRegisteredDescriptor
(int jdbcTypeCode) resolveAggregateDescriptor
(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext creationContext) resolveTypeConstructorDescriptor
(int jdbcTypeConstructorCode, BasicType<?> elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcType
viaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, BasicType, ColumnTypeInformation)
or return a compatible one from this registry.resolveTypeConstructorDescriptor
(int jdbcTypeConstructorCode, JdbcType elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcType
viaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, JdbcType, ColumnTypeInformation)
or return a compatible one from this registry.
-
Constructor Details
-
JdbcTypeRegistry
-
-
Method Details
-
getTypeConfiguration
-
addDescriptor
- Specified by:
addDescriptor
in interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptor
- Specified by:
addDescriptor
in interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptorIfAbsent
-
addDescriptorIfAbsent
-
findDescriptor
-
getDescriptor
-
resolveAggregateDescriptor
public AggregateJdbcType resolveAggregateDescriptor(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext creationContext) -
findAggregateDescriptor
-
findSqlTypedDescriptor
-
resolveTypeConstructorDescriptor
public JdbcType resolveTypeConstructorDescriptor(int jdbcTypeConstructorCode, BasicType<?> elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcType
viaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, BasicType, ColumnTypeInformation)
or return a compatible one from this registry. -
resolveTypeConstructorDescriptor
public JdbcType resolveTypeConstructorDescriptor(int jdbcTypeConstructorCode, JdbcType elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcType
viaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, JdbcType, ColumnTypeInformation)
or return a compatible one from this registry. -
hasRegisteredDescriptor
public boolean hasRegisteredDescriptor(int jdbcTypeCode) -
getConstructor
-
addTypeConstructor
-
addTypeConstructor
-