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 aTypethat may appear as an SQL literal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringobjectToSQLString(T value, Dialect dialect)Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.
-
-
-
Method Detail
-
objectToSQLString
java.lang.String objectToSQLString(T value, Dialect dialect) throws java.lang.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:
java.lang.Exception- Indicates an issue converting the value to literal string.
-
-