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.DateTimeFormatter FORMATTER  
  • Constructor Summary

    Constructors 
    Constructor Description
    EqualizedZonedDateTimeType()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Comparator<java.time.ZonedDateTime> getComparator()  
    java.lang.String getName()  
    java.time.ZonedDateTime next​(java.time.ZonedDateTime current, org.hibernate.engine.spi.SharedSessionContractImplementor session)  
    java.lang.String objectToSQLString​(java.time.ZonedDateTime value, org.hibernate.dialect.Dialect dialect)  
    protected boolean registerUnderJavaType()  
    java.time.ZonedDateTime seed​(org.hibernate.engine.spi.SharedSessionContractImplementor session)  

    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, 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, 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

  • Method Details

    • objectToSQLString

      public java.lang.String objectToSQLString​(java.time.ZonedDateTime value, org.hibernate.dialect.Dialect dialect) throws java.lang.Exception
      Specified by:
      objectToSQLString in interface org.hibernate.type.LiteralType<java.time.ZonedDateTime>
      Throws:
      java.lang.Exception
    • seed

      public java.time.ZonedDateTime seed​(org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      seed in interface org.hibernate.type.VersionType<java.time.ZonedDateTime>
    • next

      public java.time.ZonedDateTime next​(java.time.ZonedDateTime current, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      next in interface org.hibernate.type.VersionType<java.time.ZonedDateTime>
    • getComparator

      public java.util.Comparator<java.time.ZonedDateTime> getComparator()
      Specified by:
      getComparator in interface org.hibernate.type.VersionType<java.time.ZonedDateTime>
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface org.hibernate.type.Type
    • registerUnderJavaType

      protected boolean registerUnderJavaType()
      Overrides:
      registerUnderJavaType in class org.hibernate.type.AbstractStandardBasicType<java.time.ZonedDateTime>