org.apache.torque.sql.objectbuilder
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 1448414 2013-02-20 21:06:35Z tfischer $

Method Summary
 PreparedStatementPart buildPs(Object toBuildFrom, boolean ignoreCase, Adapter adapter)
          Builds a PreparedStatementPart from a single Object.
 

Method Detail

buildPs

PreparedStatementPart buildPs(Object toBuildFrom,
                              boolean ignoreCase,
                              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.
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.


Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.