类 DbTimestampType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<Date>
-
- org.hibernate.type.TimestampType
-
- org.hibernate.type.DbTimestampType
-
- 所有已实现的接口:
Serializable,BasicType,LiteralType<Date>,ProcedureParameterExtractionAware<Date>,ProcedureParameterNamedBinder,SingleColumnType<Date>,StringRepresentableType<Date>,Type,VersionType<Date>
public class DbTimestampType extends TimestampType
dbtimestamp: An extension ofTimestampTypewhich 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...- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static DbTimestampTypeINSTANCE
-
构造器概要
构造器 构造器 说明 DbTimestampType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetName()Returns the abbreviated name of the type.String[]getRegistrationKeys()Get the names under which this type should be registered in the type registry.Dateseed(SharedSessionContractImplementor session)Generate an initial version.-
从类继承的方法 org.hibernate.type.TimestampType
fromStringValue, getComparator, next, objectToSQLString
-
从类继承的方法 org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
从类继承的方法 org.hibernate.type.AbstractStandardBasicType
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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.SingleColumnType
get, nullSafeGet, set, toString
-
从接口继承的方法 org.hibernate.type.Type
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, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
字段详细资料
-
INSTANCE
public static final DbTimestampType INSTANCE
-
-
方法详细资料
-
getName
public String getName()
从接口复制的说明:TypeReturns the abbreviated name of the type.- 指定者:
getName在接口中Type- 覆盖:
getName在类中TimestampType- 返回:
- String the Hibernate type name
-
getRegistrationKeys
public String[] getRegistrationKeys()
从接口复制的说明:BasicTypeGet the names under which this type should be registered in the type registry.- 指定者:
getRegistrationKeys在接口中BasicType- 覆盖:
getRegistrationKeys在类中TimestampType- 返回:
- The keys under which to register this type.
-
seed
public Date seed(SharedSessionContractImplementor session)
从接口复制的说明:VersionTypeGenerate an initial version.- 指定者:
seed在接口中VersionType<Date>- 覆盖:
seed在类中TimestampType- 参数:
session- The session from which this request originates.- 返回:
- an instance of the type
-
-