public class ZonalTimestampType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<Date> implements org.hibernate.type.VersionType<Date>, org.hibernate.type.LiteralType<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(TimeZone zone)
Creates an instance handling timestamps under given Timezone.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
fromStringValue(String xml) |
Comparator<Date> |
getComparator() |
String |
getName() |
String[] |
getRegistrationKeys() |
Date |
next(Date current,
org.hibernate.engine.spi.SessionImplementor session) |
String |
objectToSQLString(Date value,
org.hibernate.dialect.Dialect dialect) |
Date |
seed(org.hibernate.engine.spi.SessionImplementor session) |
nullSafeSet, sqlTypeassemble, beforeAssemble, canDoExtraction, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromXMLNode, fromXMLString, 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, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableStringpublic ZonalTimestampType()
public ZonalTimestampType(TimeZone zone)
zone - the time zone timestamps shall be handled in.public String getName()
getName in interface org.hibernate.type.Typepublic String[] getRegistrationKeys()
getRegistrationKeys in interface org.hibernate.type.BasicTypegetRegistrationKeys in class org.hibernate.type.AbstractStandardBasicType<Date>public Date next(Date current, org.hibernate.engine.spi.SessionImplementor session)
next in interface org.hibernate.type.VersionType<Date>public Date seed(org.hibernate.engine.spi.SessionImplementor session)
seed in interface org.hibernate.type.VersionType<Date>public Comparator<Date> getComparator()
getComparator in interface org.hibernate.type.VersionType<Date>public String objectToSQLString(Date value, org.hibernate.dialect.Dialect dialect) throws Exception
public Date fromStringValue(String xml) throws org.hibernate.HibernateException
fromStringValue in interface org.hibernate.type.SingleColumnType<Date>fromStringValue in interface org.hibernate.type.StringRepresentableType<Date>fromStringValue in class org.hibernate.type.AbstractStandardBasicType<Date>org.hibernate.HibernateExceptionCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.