Package org.hibernate.usertype
Class UserTypeLegacyBridge
- java.lang.Object
-
- org.hibernate.usertype.BaseUserTypeSupport<Object>
-
- org.hibernate.usertype.UserTypeLegacyBridge
-
- All Implemented Interfaces:
TypeConfigurationAware,ParameterizedType,UserType<Object>
public class UserTypeLegacyBridge extends BaseUserTypeSupport<Object> implements ParameterizedType, TypeConfigurationAware
ConvenienceUserTypeimplementation which mimics the legacy@Typeannotation which was based on thehbm.xmlmapping's string-based type support.- See Also:
Type
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_NAME_PARAM_KEY
-
Constructor Summary
Constructors Constructor Description UserTypeLegacyBridge()UserTypeLegacyBridge(String hbmStyleTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeConfigurationgetTypeConfiguration()protected voidresolve(BiConsumer resolutionConsumer)voidsetParameterValues(Properties parameters)Gets called by Hibernate to pass the configured type parameters to the implementation.voidsetTypeConfiguration(TypeConfiguration typeConfiguration)-
Methods inherited from class org.hibernate.usertype.BaseUserTypeSupport
assemble, deepCopy, disassemble, equals, getSqlType, hashCode, isMutable, javaType, jdbcType, nullSafeGet, nullSafeSet, returnedClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter, replace
-
-
-
-
Field Detail
-
TYPE_NAME_PARAM_KEY
public static final String TYPE_NAME_PARAM_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserTypeLegacyBridge
public UserTypeLegacyBridge()
-
UserTypeLegacyBridge
public UserTypeLegacyBridge(String hbmStyleTypeName)
-
-
Method Detail
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
- Specified by:
getTypeConfigurationin interfaceTypeConfigurationAware
-
setTypeConfiguration
public void setTypeConfiguration(TypeConfiguration typeConfiguration)
- Specified by:
setTypeConfigurationin interfaceTypeConfigurationAware
-
setParameterValues
public void setParameterValues(Properties parameters)
Description copied from interface:ParameterizedTypeGets called by Hibernate to pass the configured type parameters to the implementation.- Specified by:
setParameterValuesin interfaceParameterizedType
-
resolve
protected void resolve(BiConsumer resolutionConsumer)
- Specified by:
resolvein classBaseUserTypeSupport<Object>
-
-