接口 PrimitiveType<T>
-
- 所有超级接口:
LiteralType<T>
- 所有已知实现类:
BooleanType,ByteType,CharacterNCharType,CharacterType,DoubleType,FloatType,IntegerType,LongType,NumericBooleanType,ShortType,TrueFalseType,YesNoType
public interface PrimitiveType<T> extends LiteralType<T>
Additional contract for primitive / primitive wrapper types.- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 SerializablegetDefaultValue()Get this type's default value.ClassgetPrimitiveClass()Retrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass().StringtoString(T value)Retrieve the string representation of the given value.-
从接口继承的方法 org.hibernate.type.LiteralType
objectToSQLString
-
-
-
-
方法详细资料
-
getPrimitiveClass
Class getPrimitiveClass()
Retrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass().- 返回:
- The primitive Java type.
-
toString
String toString(T value)
Retrieve the string representation of the given value.- 参数:
value- The value to be stringified.- 返回:
- The string representation
-
getDefaultValue
Serializable getDefaultValue()
Get this type's default value.- 返回:
- The default value.
-
-