接口 StringRepresentableType<T>
-
- 所有已知实现类:
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,ImageType,InstantType,IntegerType,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.- 作者:
- Steve Ebersole
-
-
方法详细资料
-
toString
String toString(T value) throws HibernateException
Render the value to the string representation.- 参数:
value- The value to render to string.- 返回:
- The string representation
- 抛出:
HibernateException- Problem rendering
-
fromStringValue
T fromStringValue(String string) throws HibernateException
Consume the given string representation back into this types java form.- 参数:
string- The string representation to be consumed.- 返回:
- The java type representation
- 抛出:
HibernateException- Problem consuming
-
-