类 ByteType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<Byte>
-
- org.hibernate.type.ByteType
-
- 所有已实现的接口:
Serializable,BasicType,DiscriminatorType<Byte>,IdentifierType<Byte>,LiteralType<Byte>,PrimitiveType<Byte>,ProcedureParameterExtractionAware<Byte>,ProcedureParameterNamedBinder,SingleColumnType<Byte>,StringRepresentableType<Byte>,Type,VersionType<Byte>
public class ByteType extends AbstractSingleColumnStandardBasicType<Byte> implements PrimitiveType<Byte>, DiscriminatorType<Byte>, VersionType<Byte>
- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ByteType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BytefromStringValue(String xml)Consume the given string representation back into this types java form.Comparator<Byte>getComparator()Get a comparator for version values.SerializablegetDefaultValue()Get this type's default value.StringgetName()Returns the abbreviated name of the type.ClassgetPrimitiveClass()Retrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass().String[]getRegistrationKeys()Get the names under which this type should be registered in the type registry.Bytenext(Byte current, SharedSessionContractImplementor session)Increment the version.StringobjectToSQLString(Byte value, Dialect dialect)Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.Byteseed(SharedSessionContractImplementor session)Generate an initial version.BytestringToObject(String xml)Convert the value from the mapping file to a Java object.-
从类继承的方法 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.PrimitiveType
toString
-
从接口继承的方法 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 ByteType INSTANCE
-
-
方法详细资料
-
getRegistrationKeys
public String[] getRegistrationKeys()
从接口复制的说明:BasicTypeGet the names under which this type should be registered in the type registry.- 指定者:
getRegistrationKeys在接口中BasicType- 覆盖:
getRegistrationKeys在类中AbstractStandardBasicType<Byte>- 返回:
- The keys under which to register this type.
-
getDefaultValue
public Serializable getDefaultValue()
从接口复制的说明:PrimitiveTypeGet this type's default value.- 指定者:
getDefaultValue在接口中PrimitiveType<Byte>- 返回:
- The default value.
-
getPrimitiveClass
public Class getPrimitiveClass()
从接口复制的说明:PrimitiveTypeRetrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass().- 指定者:
getPrimitiveClass在接口中PrimitiveType<Byte>- 返回:
- The primitive Java type.
-
objectToSQLString
public String objectToSQLString(Byte value, Dialect dialect)
从接口复制的说明:LiteralTypeConvert the value into a string representation, suitable for embedding in an SQL statement as a literal.- 指定者:
objectToSQLString在接口中LiteralType<Byte>- 参数:
value- The value to convertdialect- The SQL dialect- 返回:
- The value's string representation
-
stringToObject
public Byte stringToObject(String xml)
从接口复制的说明:IdentifierTypeConvert the value from the mapping file to a Java object.- 指定者:
stringToObject在接口中IdentifierType<Byte>- 参数:
xml- the value of discriminator-value or unsaved-value attribute- 返回:
- The converted value of the string representation.
-
fromStringValue
public Byte fromStringValue(String xml)
从接口复制的说明:StringRepresentableTypeConsume the given string representation back into this types java form.- 指定者:
fromStringValue在接口中SingleColumnType<Byte>- 指定者:
fromStringValue在接口中StringRepresentableType<Byte>- 覆盖:
fromStringValue在类中AbstractStandardBasicType<Byte>- 参数:
xml- The string representation to be consumed.- 返回:
- The java type representation
-
next
public Byte next(Byte current, SharedSessionContractImplementor session)
从接口复制的说明:VersionTypeIncrement the version.- 指定者:
next在接口中VersionType<Byte>- 参数:
current- the current versionsession- The session from which this request originates.- 返回:
- an instance of the type
-
seed
public Byte seed(SharedSessionContractImplementor session)
从接口复制的说明:VersionTypeGenerate an initial version.- 指定者:
seed在接口中VersionType<Byte>- 参数:
session- The session from which this request originates.- 返回:
- an instance of the type
-
getComparator
public Comparator<Byte> getComparator()
从接口复制的说明:VersionTypeGet a comparator for version values.- 指定者:
getComparator在接口中VersionType<Byte>- 返回:
- The comparator to use to compare different version values.
-
-