Class EqualizedZonedDateTimeType
java.lang.Object
org.hibernate.type.AbstractStandardBasicType<T>
org.hibernate.type.AbstractSingleColumnStandardBasicType<java.time.ZonedDateTime>
de.enterprise.starters.jpa.hibernate.type.EqualizedZonedDateTimeType
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.type.BasicType,org.hibernate.type.LiteralType<java.time.ZonedDateTime>,org.hibernate.type.ProcedureParameterExtractionAware<java.time.ZonedDateTime>,org.hibernate.type.ProcedureParameterNamedBinder,org.hibernate.type.SingleColumnType<java.time.ZonedDateTime>,org.hibernate.type.StringRepresentableType<java.time.ZonedDateTime>,org.hibernate.type.Type,org.hibernate.type.VersionType<java.time.ZonedDateTime>
public class EqualizedZonedDateTimeType
extends org.hibernate.type.AbstractSingleColumnStandardBasicType<java.time.ZonedDateTime>
implements org.hibernate.type.VersionType<java.time.ZonedDateTime>, org.hibernate.type.LiteralType<java.time.ZonedDateTime>
- Author:
- Malte Geßner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static java.time.format.DateTimeFormatterFORMATTER -
Constructor Summary
Constructors Constructor Description EqualizedZonedDateTimeType() -
Method Summary
Modifier and Type Method Description java.util.Comparator<java.time.ZonedDateTime>getComparator()java.lang.StringgetName()java.time.ZonedDateTimenext(java.time.ZonedDateTime current, org.hibernate.engine.spi.SharedSessionContractImplementor session)java.lang.StringobjectToSQLString(java.time.ZonedDateTime value, org.hibernate.dialect.Dialect dialect)protected booleanregisterUnderJavaType()java.time.ZonedDateTimeseed(org.hibernate.engine.spi.SharedSessionContractImplementor session)Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlTypeMethods 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, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toStringMethods 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, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
Field Details
-
FORMATTER
public static final java.time.format.DateTimeFormatter FORMATTER
-
-
Constructor Details
-
EqualizedZonedDateTimeType
public EqualizedZonedDateTimeType()
-
-
Method Details
-
objectToSQLString
public java.lang.String objectToSQLString(java.time.ZonedDateTime value, org.hibernate.dialect.Dialect dialect) throws java.lang.Exception- Specified by:
objectToSQLStringin interfaceorg.hibernate.type.LiteralType<java.time.ZonedDateTime>- Throws:
java.lang.Exception
-
seed
public java.time.ZonedDateTime seed(org.hibernate.engine.spi.SharedSessionContractImplementor session)- Specified by:
seedin interfaceorg.hibernate.type.VersionType<java.time.ZonedDateTime>
-
next
public java.time.ZonedDateTime next(java.time.ZonedDateTime current, org.hibernate.engine.spi.SharedSessionContractImplementor session)- Specified by:
nextin interfaceorg.hibernate.type.VersionType<java.time.ZonedDateTime>
-
getComparator
public java.util.Comparator<java.time.ZonedDateTime> getComparator()- Specified by:
getComparatorin interfaceorg.hibernate.type.VersionType<java.time.ZonedDateTime>
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceorg.hibernate.type.Type
-
registerUnderJavaType
protected boolean registerUnderJavaType()- Overrides:
registerUnderJavaTypein classorg.hibernate.type.AbstractStandardBasicType<java.time.ZonedDateTime>
-