类 OffsetDateTimeType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<OffsetDateTime>
-
- org.hibernate.type.OffsetDateTimeType
-
- 所有已实现的接口:
Serializable,BasicType,LiteralType<OffsetDateTime>,ProcedureParameterExtractionAware<OffsetDateTime>,ProcedureParameterNamedBinder,SingleColumnType<OffsetDateTime>,StringRepresentableType<OffsetDateTime>,Type,VersionType<OffsetDateTime>
public class OffsetDateTimeType extends AbstractSingleColumnStandardBasicType<OffsetDateTime> implements VersionType<OffsetDateTime>, LiteralType<OffsetDateTime>
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static DateTimeFormatterFORMATTERstatic OffsetDateTimeTypeINSTANCESingleton access
-
构造器概要
构造器 构造器 说明 OffsetDateTimeType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Comparator<OffsetDateTime>getComparator()Get a comparator for version values.StringgetName()Returns the abbreviated name of the type.OffsetDateTimenext(OffsetDateTime current, SharedSessionContractImplementor session)Increment the version.StringobjectToSQLString(OffsetDateTime value, Dialect dialect)Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.protected booleanregisterUnderJavaType()OffsetDateTimeseed(SharedSessionContractImplementor session)Generate an initial version.-
从类继承的方法 org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
从类继承的方法 org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, 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, 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
fromStringValue, 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 OffsetDateTimeType INSTANCE
Singleton access
-
FORMATTER
public static final DateTimeFormatter FORMATTER
-
-
方法详细资料
-
objectToSQLString
public String objectToSQLString(OffsetDateTime value, Dialect dialect) throws Exception
从接口复制的说明:LiteralTypeConvert the value into a string representation, suitable for embedding in an SQL statement as a literal.- 指定者:
objectToSQLString在接口中LiteralType<OffsetDateTime>- 参数:
value- The value to convertdialect- The SQL dialect- 返回:
- The value's string representation
- 抛出:
Exception- Indicates an issue converting the value to literal string.
-
seed
public OffsetDateTime seed(SharedSessionContractImplementor session)
从接口复制的说明:VersionTypeGenerate an initial version.- 指定者:
seed在接口中VersionType<OffsetDateTime>- 参数:
session- The session from which this request originates.- 返回:
- an instance of the type
-
next
public OffsetDateTime next(OffsetDateTime current, SharedSessionContractImplementor session)
从接口复制的说明:VersionTypeIncrement the version.- 指定者:
next在接口中VersionType<OffsetDateTime>- 参数:
current- the current versionsession- The session from which this request originates.- 返回:
- an instance of the type
-
getComparator
public Comparator<OffsetDateTime> getComparator()
从接口复制的说明:VersionTypeGet a comparator for version values.- 指定者:
getComparator在接口中VersionType<OffsetDateTime>- 返回:
- The comparator to use to compare different version values.
-
registerUnderJavaType
protected boolean registerUnderJavaType()
-
-