Package org.hibernate.type
Class BasicTypeRegistry
- java.lang.Object
- org.hibernate.type.BasicTypeRegistry
- All Implemented Interfaces:
Serializable
public classBasicTypeRegistryextendsObjectimplementsSerializable
A registry ofBasicTypeinstances- 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 voidaddPrimeEntry(BasicType<?> type,String legacyTypeClassName,String[] registrationKeys)voidaddPrimeEntry(BasicTypeReference<?> type,String legacyTypeClassName,String[] registrationKeys)voidaddTypeReferenceRegistrationKey(String typeReferenceKey,String... additionalTypeReferenceKeys)<J> BasicType<J>getRegisteredType(Class<J> javaType)<J> BasicType<J>getRegisteredType(Type javaType)<J> BasicType<J>getRegisteredType(String key)booleanisPrimed()voidprimed()voidregister(BasicType<?> type)voidregister(BasicType<?> type,String key)voidregister(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.voidunregister(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,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
@Internalpublic 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)