Interface ObjectPsPartBuilder

  • All Known Implementing Classes:
    ObjectOrColumnPsPartBuilder

    public interface ObjectPsPartBuilder
    Builds a PreparedStatementPart from a single object (e.g. a column or a SQL value).
    Version:
    $Id: ObjectPsPartBuilder.java 1839288 2018-08-27 09:48:33Z tv $
    • Method Detail

      • buildPs

        PreparedStatementPart buildPs​(Object toBuildFrom,
                                      boolean ignoreCase,
                                      Query query,
                                      Adapter adapter)
                               throws TorqueException
        Builds a PreparedStatementPart from a single Object.
        Parameters:
        toBuildFrom - the object to build the psPart from.
        ignoreCase - If true and columns represent Strings, the appropriate function defined for the database will be used to ignore differences in case.
        query - the query which is currently built
        adapter - The adapter for the database for which the SQL should be created, not null.
        Returns:
        the PreparedStatementPart for the object.
        Throws:
        TorqueException - when rendering fails.