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
ConvenienceUserType
implementation which mimics the legacy@Type
annotation which was based on thehbm.xml
mapping's string-based type support.- See Also:
Type
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_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 TypeConfiguration
getTypeConfiguration()
protected void
resolve(BiConsumer resolutionConsumer)
void
setParameterValues(Properties parameters)
Gets called by Hibernate to pass the configured type parameters to the implementation.void
setTypeConfiguration(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:
getTypeConfiguration
in interfaceTypeConfigurationAware
-
setTypeConfiguration
public void setTypeConfiguration(TypeConfiguration typeConfiguration)
- Specified by:
setTypeConfiguration
in interfaceTypeConfigurationAware
-
setParameterValues
public void setParameterValues(Properties parameters)
Description copied from interface:ParameterizedType
Gets called by Hibernate to pass the configured type parameters to the implementation.- Specified by:
setParameterValues
in interfaceParameterizedType
-
resolve
protected void resolve(BiConsumer resolutionConsumer)
- Specified by:
resolve
in classBaseUserTypeSupport<Object>
-
-