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(SessionImplementor session)
Generate an initial version.
|
fromStringValue, getComparator, next, objectToSQLString
nullSafeSet, sqlType
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, semiResolve, sqlTypes, toColumnNullness, toLoggableString
get, nullSafeGet, set, toString
public static final DbTimestampType INSTANCE
public String getName()
Type
getName
in interface Type
getName
in class TimestampType
public String[] getRegistrationKeys()
BasicType
getRegistrationKeys
in interface BasicType
getRegistrationKeys
in class TimestampType
public Date seed(SessionImplementor session)
VersionType
seed
in interface VersionType<Date>
seed
in class TimestampType
session
- The session from which this request originates.Copyright © 2017 JBoss by Red Hat. All rights reserved.