public class DbTimestampType extends TimestampType
TimestampType which
maps to the database's current timestamp, rather than the jvm's
current timestamp.
Note: May/may-not cause issues on dialects which do not properly support
a true notion of timestamp (Oracle < 8, for example, where only its DATE
datatype is supported). Depends on the frequency of DML operations...| Modifier and Type | Field and Description |
|---|---|
static DbTimestampType |
INSTANCE |
| Constructor and Description |
|---|
DbTimestampType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the abbreviated name of the type.
|
String[] |
getRegistrationKeys()
Get the names under which this type should be registered in the type registry.
|
Date |
seed(SharedSessionContractImplementor session)
Generate an initial version.
|
fromStringValue, getComparator, next, objectToSQLStringnullSafeSet, 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, toLoggableStringget, nullSafeGet, set, toStringpublic static final DbTimestampType INSTANCE
public String getName()
TypegetName in interface TypegetName in class TimestampTypepublic String[] getRegistrationKeys()
BasicTypegetRegistrationKeys in interface BasicTypegetRegistrationKeys in class TimestampTypepublic Date seed(SharedSessionContractImplementor session)
VersionTypeseed in interface VersionType<Date>seed in class TimestampTypesession - The session from which this request originates.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.