Class TimestampWithoutTimezoneType

java.lang.Object
org.hibernate.type.AbstractStandardBasicType<T>
org.hibernate.type.AbstractSingleColumnStandardBasicType<Date>
org.hibernate.type.TimestampType
org.evolvis.tartools.tsutc.TimestampWithoutTimezoneType
All Implemented Interfaces:
Serializable, org.hibernate.type.BasicType, org.hibernate.type.LiteralType<Date>, org.hibernate.type.ProcedureParameterExtractionAware<Date>, org.hibernate.type.ProcedureParameterNamedBinder, org.hibernate.type.SingleColumnType<Date>, org.hibernate.type.StringRepresentableType<Date>, org.hibernate.type.Type, org.hibernate.type.VersionType<Date>

public final class TimestampWithoutTimezoneType extends org.hibernate.type.TimestampType
Hibernate type for persisting a (millis-only) java.util.Date as SQL “TIMESTAMP” (aka “TIMESTAMP WITHOUT TIME ZONE”) in UTC. Sample use in an Entity:

 @Type(type="org.evolvis.tartools.tsutc.TimestampWithoutTimezoneType")
 @Column(name="update_date")
 private Date updateDate;
 
Author:
mirabilos (t.glaser@tarent.de)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Singleton instance of TimestampWithoutTimezoneType
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs the class and overrides the TimestampType parent’s SQL type descriptor to TimestampWithoutTimezoneTypeDescriptor.
  • Method Summary

    Methods inherited from class org.hibernate.type.TimestampType

    fromStringValue, getComparator, getName, getRegistrationKeys, next, objectToSQLString, seed

    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, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, 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

    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

  • Constructor Details

    • TimestampWithoutTimezoneType

      public TimestampWithoutTimezoneType()
      Constructs the class and overrides the TimestampType parent’s SQL type descriptor to TimestampWithoutTimezoneTypeDescriptor.