Package org.hibernate.type
Interface LiteralType<T>
-
- All Known Subinterfaces:
DiscriminatorType<T>
,PrimitiveType<T>
- All Known Implementing Classes:
BigIntegerType
,BooleanType
,ByteType
,CharacterNCharType
,CharacterType
,CurrencyType
,CustomType
,DateType
,DbTimestampType
,DoubleType
,DurationType
,FloatType
,InstantType
,IntegerType
,LocalDateTimeType
,LocalDateType
,LocaleType
,LocalTimeType
,LongType
,NumericBooleanType
,OffsetDateTimeType
,OffsetTimeType
,ShortType
,StringNVarcharType
,StringType
,TimestampType
,TimeType
,TimeZoneType
,TrueFalseType
,UrlType
,UUIDCharType
,YesNoType
,ZonedDateTimeType
public interface LiteralType<T>
Additional contract for aType
that may appear as an SQL literal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
objectToSQLString(T value, Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.
-
-
-
Method Detail
-
objectToSQLString
String objectToSQLString(T value, Dialect dialect) throws Exception
Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.- Parameters:
value
- The value to convertdialect
- The SQL dialect- Returns:
- The value's string representation
- Throws:
Exception
- Indicates an issue converting the value to literal string.
-
-