public interface StringRepresentableType<T>
Additional, optional contract for types capable of rendering and consuming their values to/from strings.
Modifier and Type | Method and Description |
---|---|
T |
fromStringValue(String string)
Consume the given string representation back into this types java form.
|
String |
toString(T value)
Render the value to the string representation.
|
String toString(T value) throws HibernateException
Render the value to the string representation.
value
- The value to render to string.HibernateException
- Problem renderingT fromStringValue(String string) throws HibernateException
Consume the given string representation back into this types java form.
string
- The string representation to be consumed.HibernateException
- Problem consumingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.