public interface

StringRepresentableType

org.hibernate.type.StringRepresentableType<T>
Known Indirect Subclasses

Class Overview

Additional, optional contract for types capable of rendering and consuming their values to/from strings.

Summary

Public Methods
abstract T fromStringValue(String string)
Consume the given string representation back into this types java form.
abstract String toString(T value)
Render the value to the string representation.

Public Methods

public abstract T fromStringValue (String string)

Consume the given string representation back into this types java form.

Parameters
string The string representation to be consumed.
Returns
  • The java type representation
Throws
HibernateException Problem consuming

public abstract String toString (T value)

Render the value to the string representation.

Parameters
value The value to render to string.
Returns
  • The string representation
Throws
HibernateException Problem rendering