public interface

LiteralType

org.hibernate.type.LiteralType<T>
Known Indirect Subclasses

Class Overview

Additional contract for a Type that may appear as an SQL literal

Summary

Public Methods
abstract String objectToSQLString(T value, Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.

Public Methods

public abstract String objectToSQLString (T value, Dialect dialect)

Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.

Parameters
value The value to convert
dialect The SQL dialect
Returns
  • The value's string representation
Throws
Exception Indicates an issue converting the value to literal string.