com.vladmihalcea.hibernate.type
Class AbstractHibernateType<T>

java.lang.Object
  extended by org.hibernate.type.AbstractStandardBasicType<T>
      extended by org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
          extended by com.vladmihalcea.hibernate.type.AbstractHibernateType<T>
All Implemented Interfaces:
Serializable, org.hibernate.type.BasicType, org.hibernate.type.ProcedureParameterExtractionAware<T>, org.hibernate.type.ProcedureParameterNamedBinder, org.hibernate.type.SingleColumnType<T>, org.hibernate.type.StringRepresentableType<T>, org.hibernate.type.Type
Direct Known Subclasses:
AbstractArrayType, DateArrayType, JsonBinaryType, JsonBlobType, JsonNodeBinaryType, JsonNodeStringType, JsonStringType, JsonType

public abstract class AbstractHibernateType<T>
extends org.hibernate.type.AbstractSingleColumnStandardBasicType<T>

Very convenient base class for implementing object types using Hibernate Java and SQL descriptors.

Author:
Vlad Mihalcea
See Also:
Serialized Form

Constructor Summary
protected AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor, org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor)
          Initialization constructor taking the SqlTypeDescriptor and JavaTypeDescriptor objects, and using the default Configuration object.
protected AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor, org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor, Configuration configuration)
          Initialization constructor taking the SqlTypeDescriptor, JavaTypeDescriptor, and Configuration objects.
 
Method Summary
protected  Configuration getConfiguration()
          Get the current Configuration object.
 
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, getMutabilityPlan, 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, toString, 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, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, replace, replace, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
 

Constructor Detail

AbstractHibernateType

protected AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor,
                                org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor)
Initialization constructor taking the SqlTypeDescriptor and JavaTypeDescriptor objects, and using the default Configuration object.

Parameters:
sqlTypeDescriptor - the SqlTypeDescriptor to be used
javaTypeDescriptor - the JavaTypeDescriptor to be used

AbstractHibernateType

protected AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor,
                                org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor,
                                Configuration configuration)
Initialization constructor taking the SqlTypeDescriptor, JavaTypeDescriptor, and Configuration objects.

Parameters:
sqlTypeDescriptor - the SqlTypeDescriptor to be used
javaTypeDescriptor - the JavaTypeDescriptor to be used
configuration - custom Configuration object.
Method Detail

getConfiguration

protected Configuration getConfiguration()
Get the current Configuration object.

Returns:
the current Configuration object.


Copyright © 2021. All rights reserved.