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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescriptor(int typeCode, JdbcType jdbcType) voidaddDescriptor(JdbcType jdbcType) voidaddDescriptorIfAbsent(int typeCode, JdbcType jdbcType) voidaddDescriptorIfAbsent(JdbcType jdbcType) voidaddTypeConstructor(int jdbcTypeCode, JdbcTypeConstructor jdbcTypeConstructor) voidaddTypeConstructor(JdbcTypeConstructor jdbcTypeConstructor) voidaddTypeConstructorIfAbsent(int jdbcTypeCode, JdbcTypeConstructor jdbcTypeConstructor) voidaddTypeConstructorIfAbsent(JdbcTypeConstructor jdbcTypeConstructor) findAggregateDescriptor(String typeName) findDescriptor(int jdbcTypeCode) findSqlTypedDescriptor(String sqlTypeName) getConstructor(int jdbcTypeCode) getDescriptor(int jdbcTypeCode) booleanhasRegisteredDescriptor(int jdbcTypeCode) resolveAggregateDescriptor(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext context) resolveTypeConstructorDescriptor(int jdbcTypeConstructorCode, BasicType<?> elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcTypeviaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, BasicType, ColumnTypeInformation)or return a compatible one from this registry.resolveTypeConstructorDescriptor(int jdbcTypeConstructorCode, JdbcType elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcTypeviaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, JdbcType, ColumnTypeInformation)or return a compatible one from this registry.
-
Constructor Details
-
JdbcTypeRegistry
-
-
Method Details
-
getTypeConfiguration
-
addDescriptor
- Specified by:
addDescriptorin interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptor
- Specified by:
addDescriptorin interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptorIfAbsent
-
addDescriptorIfAbsent
-
findDescriptor
-
getDescriptor
-
resolveAggregateDescriptor
public AggregateJdbcType resolveAggregateDescriptor(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext context) -
findAggregateDescriptor
-
findSqlTypedDescriptor
-
resolveTypeConstructorDescriptor
public JdbcType resolveTypeConstructorDescriptor(int jdbcTypeConstructorCode, BasicType<?> elementType, @Nullable ColumnTypeInformation columnTypeInformation) Construct aJdbcTypeviaJdbcTypeConstructor.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 aJdbcTypeviaJdbcTypeConstructor.resolveType(TypeConfiguration, Dialect, JdbcType, ColumnTypeInformation)or return a compatible one from this registry. -
hasRegisteredDescriptor
public boolean hasRegisteredDescriptor(int jdbcTypeCode) -
getConstructor
-
addTypeConstructor
-
addTypeConstructor
-
addTypeConstructorIfAbsent
-
addTypeConstructorIfAbsent
-