Package org.evolvis.tartools.tsutc
Class TimestampWithoutTimezoneType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<java.util.Date>
-
- org.hibernate.type.TimestampType
-
- org.evolvis.tartools.tsutc.TimestampWithoutTimezoneType
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.type.BasicType,org.hibernate.type.LiteralType<java.util.Date>,org.hibernate.type.ProcedureParameterExtractionAware<java.util.Date>,org.hibernate.type.ProcedureParameterNamedBinder,org.hibernate.type.SingleColumnType<java.util.Date>,org.hibernate.type.StringRepresentableType<java.util.Date>,org.hibernate.type.Type,org.hibernate.type.VersionType<java.util.Date>
public final class TimestampWithoutTimezoneType extends org.hibernate.type.TimestampTypeHibernate 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
-
-
Field Summary
Fields Modifier and Type Field Description static TimestampWithoutTimezoneTypeINSTANCESingleton instance ofTimestampWithoutTimezoneType
-
Constructor Summary
Constructors Constructor Description TimestampWithoutTimezoneType()Constructs the class and overrides theTimestampTypeparent’s SQL type descriptor toTimestampWithoutTimezoneTypeDescriptor.
-
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, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Field Detail
-
INSTANCE
public static final TimestampWithoutTimezoneType INSTANCE
Singleton instance ofTimestampWithoutTimezoneType
-
-