Interface JdbcLiteralFormatter<T>

    • Method Detail

      • toJdbcLiteral

        default String toJdbcLiteral​(T value,
                                     Dialect dialect,
                                     WrapperOptions wrapperOptions)
        Produces a string containing a SQL literal value representing the given Java value.
        Parameters:
        value - a Java object whose value can be represented as a SQL literal
        dialect - the SQL dialect
        Returns:
        the SQL literal as a string
      • appendJdbcLiteral

        void appendJdbcLiteral​(SqlAppender appender,
                               T value,
                               Dialect dialect,
                               WrapperOptions wrapperOptions)
        Append a SQL literal representing the given Java value to a fragment of SQL which is being built.
        Parameters:
        appender - an operation that appends to the SQL fragment
        value - a Java object whose value can be represented as a SQL literal
        dialect - the SQL dialect