Package org.hibernate.type
Interface StringRepresentableType<T>
-
- All Known Implementing Classes:
AbstractSingleColumnStandardBasicType
,AbstractStandardBasicType
,AdaptedImmutableType
,AttributeConverterTypeAdapter
,BigDecimalType
,BigIntegerType
,BinaryType
,BlobType
,BooleanType
,ByteType
,CalendarDateType
,CalendarTimeType
,CalendarType
,CharacterArrayClobType
,CharacterArrayNClobType
,CharacterArrayType
,CharacterNCharType
,CharacterType
,CharArrayType
,ClassType
,ClobType
,CurrencyType
,CustomType
,DateType
,DbTimestampType
,DoubleType
,DurationType
,FloatType
,GeolatteGeometryType
,ImageType
,InstantType
,IntegerType
,JTSGeometryType
,LocalDateTimeType
,LocalDateType
,LocaleType
,LocalTimeType
,LongType
,MaterializedBlobType
,MaterializedClobType
,MaterializedNClobType
,NClobType
,NTextType
,NumericBooleanType
,OffsetDateTimeType
,OffsetTimeType
,PostgresUUIDType
,PrimitiveCharacterArrayClobType
,PrimitiveCharacterArrayNClobType
,RowVersionType
,SerializableToBlobType
,SerializableType
,ShortType
,StandardBasicTypeTemplate
,StringNVarcharType
,StringType
,TextType
,TimestampType
,TimeType
,TimeZoneType
,TrueFalseType
,UrlType
,UUIDBinaryType
,UUIDCharType
,WrappedMaterializedBlobType
,WrapperBinaryType
,YesNoType
,ZonedDateTimeType
public interface StringRepresentableType<T>
Additional, optional contract for types capable of rendering and consuming their values to/from strings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
fromStringValue(java.lang.String string)
Consume the given string representation back into this types java form.java.lang.String
toString(T value)
Render the value to the string representation.
-
-
-
Method Detail
-
toString
java.lang.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(java.lang.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
-
-