Package org.hibernate.type
Class BasicTypeRegistry
- java.lang.Object
-
- org.hibernate.type.BasicTypeRegistry
-
- All Implemented Interfaces:
Serializable
public class BasicTypeRegistry extends Object implements Serializable
A registry ofBasicType
instances- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicTypeRegistry(TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPrimeEntry(BasicType<?> type, String legacyTypeClassName, String[] registrationKeys)
void
addPrimeEntry(BasicTypeReference<?> type, String legacyTypeClassName, String[] registrationKeys)
void
addTypeReferenceRegistrationKey(String typeReferenceKey, String... additionalTypeReferenceKeys)
<J> BasicType<J>
getRegisteredType(Class<J> javaType)
<J> BasicType<J>
getRegisteredType(Type javaType)
<J> BasicType<J>
getRegisteredType(String key)
boolean
isPrimed()
void
primed()
void
register(BasicType<?> type)
void
register(BasicType<?> type, String key)
void
register(BasicType<?> type, String... keys)
<T> CustomType<T>
register(UserType<T> type, String... keys)
<J> BasicType<J>
resolve(Class<J> javaType, int sqlTypeCode)
<J> BasicType<J>
resolve(Type javaType, int sqlTypeCode)
<J> BasicType<J>
resolve(BasicTypeReference<J> basicTypeReference)
<J> BasicType<J>
resolve(JavaType<J> javaType, int sqlTypeCode)
<J> BasicType<J>
resolve(JavaType<J> javaType, JdbcType jdbcType)
<J> BasicType<J>
resolve(JavaType<J> javaType, JdbcType jdbcType, String baseTypeName)
<J> BasicType<J>
resolve(JavaType<J> javaType, JdbcType jdbcType, Supplier<BasicType<J>> creator)
Find an existing BasicType registration for the given JavaType and JdbcType combo or create (and register) one.void
unregister(String... keys)
-
-
-
Constructor Detail
-
BasicTypeRegistry
public BasicTypeRegistry(TypeConfiguration typeConfiguration)
-
-
Method Detail
-
resolve
public <J> BasicType<J> resolve(BasicTypeReference<J> basicTypeReference)
-
resolve
public <J> BasicType<J> resolve(JavaType<J> javaType, JdbcType jdbcType, String baseTypeName)
-
resolve
public <J> BasicType<J> resolve(JavaType<J> javaType, JdbcType jdbcType, Supplier<BasicType<J>> creator)
Find an existing BasicType registration for the given JavaType and JdbcType combo or create (and register) one.
-
register
public void register(BasicType<?> type)
-
register
public <T> CustomType<T> register(UserType<T> type, String... keys)
-
unregister
public void unregister(String... keys)
-
addTypeReferenceRegistrationKey
@Internal public void addTypeReferenceRegistrationKey(String typeReferenceKey, String... additionalTypeReferenceKeys)
-
isPrimed
public boolean isPrimed()
-
primed
public void primed()
-
addPrimeEntry
public void addPrimeEntry(BasicType<?> type, String legacyTypeClassName, String[] registrationKeys)
-
addPrimeEntry
public void addPrimeEntry(BasicTypeReference<?> type, String legacyTypeClassName, String[] registrationKeys)
-
-