Package com.vladmihalcea.hibernate.type
Class AbstractHibernateType<T>
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
-
- com.vladmihalcea.hibernate.type.AbstractHibernateType<T>
-
- All Implemented Interfaces:
java.io.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
,Iso8601MonthType
,JsonBinaryType
,JsonBlobType
,JsonNodeBinaryType
,JsonNodeStringType
,JsonStringType
,JsonType
,MonthDayDateType
,MonthDayIntegerType
,YearMonthDateType
,YearMonthEpochType
,YearMonthIntegerType
,YearMonthTimestampType
,YearType
,ZoneIdType
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Configuration
configuration
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor, org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor)
Initialization constructor taking theSqlTypeDescriptor
andJavaTypeDescriptor
objects, and using the defaultConfiguration
object.protected
AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor, org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor, Configuration configuration)
Initialization constructor taking theSqlTypeDescriptor
,JavaTypeDescriptor
, andConfiguration
objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Configuration
getConfiguration()
Get the currentConfiguration
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, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Field Detail
-
configuration
private final Configuration configuration
-
-
Constructor Detail
-
AbstractHibernateType
protected AbstractHibernateType(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor, org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> javaTypeDescriptor)
Initialization constructor taking theSqlTypeDescriptor
andJavaTypeDescriptor
objects, and using the defaultConfiguration
object.- Parameters:
sqlTypeDescriptor
- theSqlTypeDescriptor
to be usedjavaTypeDescriptor
- theJavaTypeDescriptor
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 theSqlTypeDescriptor
,JavaTypeDescriptor
, andConfiguration
objects.- Parameters:
sqlTypeDescriptor
- theSqlTypeDescriptor
to be usedjavaTypeDescriptor
- theJavaTypeDescriptor
to be usedconfiguration
- customConfiguration
object.
-
-
Method Detail
-
getConfiguration
protected Configuration getConfiguration()
Get the currentConfiguration
object.- Returns:
- the current
Configuration
object.
-
-