org.hibernate.type
Interface StringRepresentableType<T>
- All Known Implementing Classes:
- AbstractBynaryType, AbstractCharArrayType, AbstractLongBinaryType, AbstractLongStringType, AbstractSingleColumnStandardBasicType, AbstractStandardBasicType, AdaptedImmutableType, BigDecimalType, BigIntegerType, BinaryType, BlobType, BooleanType, ByteType, CalendarDateType, CalendarType, CharacterArrayClobType, CharacterArrayNClobType, CharacterArrayType, CharacterNCharType, CharacterType, CharArrayType, CharBooleanType, ClassType, ClobType, CurrencyType, CustomType, DateType, DbTimestampType, DoubleType, FloatType, ImageType, ImmutableType, IntegerType, LocaleType, LongType, MaterializedBlobType, MaterializedClobType, MaterializedNClobType, MutableType, NClobType, NTextType, NullableType, NumericBooleanType, PostgresUUIDType, PrimitiveCharacterArrayClobType, PrimitiveCharacterArrayNClobType, SerializableToBlobType, SerializableType, ShortType, StringNVarcharType, StringType, TextType, TimestampType, TimeType, TimeZoneType, TrueFalseType, UrlType, UUIDBinaryType, UUIDCharType, WrappedMaterializedBlobType, WrapperBinaryType, YesNoType
public interface StringRepresentableType<T>
Additional, optional contract for types capable of rendering and consuming their values to/from strings.
Method Summary |
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. |
toString
String toString(T value)
throws HibernateException
- Render the value to the string representation.
- Parameters:
value
- The value to render to string.
- Returns:
- The string representation
- Throws:
HibernateException
- Problem rendering
fromStringValue
T fromStringValue(String string)
throws HibernateException
- 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
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.