public interface

PrimitiveType

implements LiteralType<T>
org.hibernate.type.PrimitiveType<T>
Known Indirect Subclasses

Class Overview

Additional contract for primitive / primitive wrapper types.

Summary

Public Methods
abstract Serializable getDefaultValue()
Get this type's default value.
abstract Class getPrimitiveClass()
Retrieve the primitive counterpart to the wrapper type identified by getReturnedClass().
abstract String toString(T value)
Retrieve the string representation of the given value.
[Expand]
Inherited Methods
From interface org.hibernate.type.LiteralType

Public Methods

public abstract Serializable getDefaultValue ()

Get this type's default value.

Returns
  • The default value.

public abstract Class getPrimitiveClass ()

Retrieve the primitive counterpart to the wrapper type identified by getReturnedClass().

Returns
  • The primitive Java type.

public abstract String toString (T value)

Retrieve the string representation of the given value.

Parameters
value The value to be stringified.
Returns
  • The string representation