接口 LiteralType<T>
-
- 所有已知子接口:
DiscriminatorType<T>,PrimitiveType<T>
- 所有已知实现类:
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- 作者:
- Gavin King, Steve Ebersole
-
-
方法详细资料
-
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.- 参数:
value- The value to convertdialect- The SQL dialect- 返回:
- The value's string representation
- 抛出:
Exception- Indicates an issue converting the value to literal string.
-
-