Package org.evolvis.tartools.tsutc
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
FieldsModifier and TypeFieldDescriptionstatic final TimestampWithoutTimezoneTypeSingleton instance ofTimestampWithoutTimezoneType -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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, seedMethods 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, 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, 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
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
-
INSTANCE
Singleton instance ofTimestampWithoutTimezoneType
-
-
Constructor Details
-
TimestampWithoutTimezoneType
public TimestampWithoutTimezoneType()Constructs the class and overrides theTimestampTypeparent’s SQL type descriptor toTimestampWithoutTimezoneTypeDescriptor.
-