Class 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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TimestampWithoutTimezoneType()
      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 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
    • Constructor Detail

      • TimestampWithoutTimezoneType

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