Package org.hibernate.usertype
Class UserTypeLegacyBridge
- All Implemented Interfaces:
TypeConfigurationAware
,ParameterizedType
,UserType<Object>
public class UserTypeLegacyBridge
extends BaseUserTypeSupport<Object>
implements ParameterizedType, TypeConfigurationAware
Convenience
UserType
implementation which mimics the legacy @Type
annotation which was based on the hbm.xml
mapping's string-based type support.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, nullSafeGet, nullSafeSet, replace
-
Field Details
-
TYPE_NAME_PARAM_KEY
- See Also:
-
-
Constructor Details
-
UserTypeLegacyBridge
public UserTypeLegacyBridge() -
UserTypeLegacyBridge
-
-
Method Details
-
getTypeConfiguration
- Specified by:
getTypeConfiguration
in interfaceTypeConfigurationAware
-
setTypeConfiguration
- Specified by:
setTypeConfiguration
in interfaceTypeConfigurationAware
-
setParameterValues
Description copied from interface:ParameterizedType
Gets called by Hibernate to pass the configured type parameters to the implementation.- Specified by:
setParameterValues
in interfaceParameterizedType
-
resolve
- Specified by:
resolve
in classBaseUserTypeSupport<Object>
-