Package org.hibernate.type
Interface PrimitiveType<T>
-
- All Superinterfaces:
LiteralType<T>
- All Known Implementing Classes:
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Serializable
getDefaultValue()
Get this type's default value.java.lang.Class
getPrimitiveClass()
Retrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass()
.java.lang.String
toString(T value)
Retrieve the string representation of the given value.-
Methods inherited from interface org.hibernate.type.LiteralType
objectToSQLString
-
-
-
-
Method Detail
-
getPrimitiveClass
java.lang.Class getPrimitiveClass()
Retrieve the primitive counterpart to the wrapper type identified byType.getReturnedClass()
.- Returns:
- The primitive Java type.
-
toString
java.lang.String toString(T value)
Retrieve the string representation of the given value.- Parameters:
value
- The value to be stringified.- Returns:
- The string representation
-
getDefaultValue
java.io.Serializable getDefaultValue()
Get this type's default value.- Returns:
- The default value.
-
-