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 mappingJDBC type codes
to implementations of theJdbcType
interface.- Since:
- 5.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JdbcTypeRegistry(TypeConfiguration typeConfiguration)
-
Method Summary
-
-
-
Constructor Detail
-
JdbcTypeRegistry
public JdbcTypeRegistry(TypeConfiguration typeConfiguration)
-
-
Method Detail
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
-
addDescriptor
public void addDescriptor(JdbcType jdbcType)
- Specified by:
addDescriptor
in interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptor
public void addDescriptor(int typeCode, JdbcType jdbcType)
- Specified by:
addDescriptor
in interfaceJdbcTypeBaseline.BaselineTarget
-
addDescriptorIfAbsent
public void addDescriptorIfAbsent(JdbcType jdbcType)
-
addDescriptorIfAbsent
public void addDescriptorIfAbsent(int typeCode, JdbcType jdbcType)
-
findDescriptor
public JdbcType findDescriptor(int jdbcTypeCode)
-
getDescriptor
public JdbcType getDescriptor(int jdbcTypeCode)
-
resolveAggregateDescriptor
public AggregateJdbcType resolveAggregateDescriptor(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext creationContext)
-
findAggregateDescriptor
public AggregateJdbcType findAggregateDescriptor(String typeName)
-
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
public JdbcTypeConstructor getConstructor(int jdbcTypeCode)
-
addTypeConstructor
public void addTypeConstructor(int jdbcTypeCode, JdbcTypeConstructor jdbcTypeConstructor)
-
addTypeConstructor
public void addTypeConstructor(JdbcTypeConstructor jdbcTypeConstructor)
-
-