public class ZonalTimestampType
extends org.hibernate.type.AbstractSingleColumnStandardBasicType<java.util.Date>
implements org.hibernate.type.VersionType<java.util.Date>, org.hibernate.type.LiteralType<java.util.Date>
TIMESTAMP and Timestamp.
Delegates to Hibernate's TimestampType, but specifies ZonalTimestampTypeDescriptor as the SqlTypeDescriptor
so that times from the database can be configured to have a specific timezone.| Constructor and Description |
|---|
ZonalTimestampType()
Creates with timezone UTC.
|
ZonalTimestampType(java.util.TimeZone zone)
Creates an instance handling timestamps under given Timezone.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
fromStringValue(java.lang.String xml) |
java.util.Comparator<java.util.Date> |
getComparator() |
java.lang.String |
getName() |
java.lang.String[] |
getRegistrationKeys() |
java.util.Date |
next(java.util.Date current,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
java.lang.String |
objectToSQLString(java.util.Date value,
org.hibernate.dialect.Dialect dialect) |
java.util.Date |
seed(org.hibernate.engine.spi.SharedSessionContractImplementor session) |
nullSafeSet, sqlTypeassemble, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassemble, 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, toLoggableStringpublic ZonalTimestampType()
public ZonalTimestampType(java.util.TimeZone zone)
zone - the time zone timestamps shall be handled in.public java.lang.String getName()
getName in interface org.hibernate.type.Typepublic java.lang.String[] getRegistrationKeys()
getRegistrationKeys in interface org.hibernate.type.BasicTypegetRegistrationKeys in class org.hibernate.type.AbstractStandardBasicType<java.util.Date>public java.util.Date seed(org.hibernate.engine.spi.SharedSessionContractImplementor session)
seed in interface org.hibernate.type.VersionType<java.util.Date>public java.util.Date next(java.util.Date current,
org.hibernate.engine.spi.SharedSessionContractImplementor session)
next in interface org.hibernate.type.VersionType<java.util.Date>public java.util.Comparator<java.util.Date> getComparator()
getComparator in interface org.hibernate.type.VersionType<java.util.Date>public java.lang.String objectToSQLString(java.util.Date value,
org.hibernate.dialect.Dialect dialect)
throws java.lang.Exception
objectToSQLString in interface org.hibernate.type.LiteralType<java.util.Date>java.lang.Exceptionpublic java.util.Date fromStringValue(java.lang.String xml)
throws org.hibernate.HibernateException
fromStringValue in interface org.hibernate.type.SingleColumnType<java.util.Date>fromStringValue in interface org.hibernate.type.StringRepresentableType<java.util.Date>fromStringValue in class org.hibernate.type.AbstractStandardBasicType<java.util.Date>org.hibernate.HibernateExceptionCopyright © 2015–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.