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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDescriptor(int typeCode, JdbcType jdbcType)
void
addDescriptor(JdbcType jdbcType)
void
addDescriptorIfAbsent(int typeCode, JdbcType jdbcType)
void
addDescriptorIfAbsent(JdbcType jdbcType)
AggregateJdbcType
findAggregateDescriptor(String typeName)
JdbcType
findDescriptor(int jdbcTypeCode)
JdbcType
getDescriptor(int jdbcTypeCode)
TypeConfiguration
getTypeConfiguration()
boolean
hasRegisteredDescriptor(int jdbcTypeCode)
AggregateJdbcType
resolveAggregateDescriptor(int jdbcTypeCode, String typeName, EmbeddableMappingType embeddableMappingType, RuntimeModelCreationContext creationContext)
-
-
-
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)
-
hasRegisteredDescriptor
public boolean hasRegisteredDescriptor(int jdbcTypeCode)
-
-