public class UtcTimestampType 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 UtcTimestampTypeDescriptor as the SqlTypeDescriptor so that times
from the database are always retrieved in UTC.Modifier and Type | Field and Description |
---|---|
static UtcTimestampType |
INSTANCE |
private static long |
serialVersionUID |
Constructor and Description |
---|
UtcTimestampType() |
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, sqlType
assemble, 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, toXMLString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assemble, 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, toLoggableString
private static final long serialVersionUID
public static final UtcTimestampType INSTANCE
public String getName()
getName
in interface org.hibernate.type.Type
public String[] getRegistrationKeys()
getRegistrationKeys
in interface org.hibernate.type.BasicType
getRegistrationKeys
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.HibernateException
Copyright © 2012-2015 52north.org. All Rights Reserved.