Class AttributeConverterTypeAdapter<T>
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
-
- org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter<T>
-
- All Implemented Interfaces:
java.io.Serializable
,BasicType
,ProcedureParameterExtractionAware<T>
,ProcedureParameterNamedBinder
,SingleColumnType<T>
,StringRepresentableType<T>
,Type
public class AttributeConverterTypeAdapter<T> extends AbstractSingleColumnStandardBasicType<T>
Adapts the Hibernate Type contract to incorporate JPA AttributeConverter calls.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME_PREFIX
-
Constructor Summary
Constructors Constructor Description AttributeConverterTypeAdapter(java.lang.String name, java.lang.String description, JpaAttributeConverter<? extends T,?> attributeConverter, SqlTypeDescriptor sqlTypeDescriptorAdapter, java.lang.Class modelType, java.lang.Class jdbcType, JavaTypeDescriptor<T> entityAttributeJavaTypeDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaAttributeConverter<? extends T,?>
getAttributeConverter()
java.lang.Class
getJdbcType()
java.lang.Class
getModelType()
protected MutabilityPlan<T>
getMutabilityPlan()
java.lang.String
getName()
Returns the abbreviated name of the type.java.lang.String
toString()
-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Field Detail
-
NAME_PREFIX
public static final java.lang.String NAME_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributeConverterTypeAdapter
public AttributeConverterTypeAdapter(java.lang.String name, java.lang.String description, JpaAttributeConverter<? extends T,?> attributeConverter, SqlTypeDescriptor sqlTypeDescriptorAdapter, java.lang.Class modelType, java.lang.Class jdbcType, JavaTypeDescriptor<T> entityAttributeJavaTypeDescriptor)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Type
Returns the abbreviated name of the type.- Returns:
- String the Hibernate type name
-
getModelType
public java.lang.Class getModelType()
-
getJdbcType
public java.lang.Class getJdbcType()
-
getAttributeConverter
public JpaAttributeConverter<? extends T,?> getAttributeConverter()
-
getMutabilityPlan
protected MutabilityPlan<T> getMutabilityPlan()
- Overrides:
getMutabilityPlan
in classAbstractStandardBasicType<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-