Class OnlyReplacementsPreparedStatementPart

java.lang.Object
org.apache.torque.sql.whereclausebuilder.OnlyReplacementsPreparedStatementPart
All Implemented Interfaces:
PreparedStatementPart

public class OnlyReplacementsPreparedStatementPart extends Object implements PreparedStatementPart
A PreparedStatementPart which only contains replacements, no sql.
Version:
$Id: $
  • Constructor Details

    • OnlyReplacementsPreparedStatementPart

      public OnlyReplacementsPreparedStatementPart(Object replacement)
      Constructor.
      Parameters:
      replacement - the first replacement to be contained in this PreparedStatementPart.
  • Method Details

    • getSqlAsString

      public String getSqlAsString()
      returns the empty sql.
      Specified by:
      getSqlAsString in interface PreparedStatementPart
      Returns:
      the empty sql, not null.
    • getPreparedStatementReplacements

      public List<Object> getPreparedStatementReplacements()
      Returns the list of prepared statement replacements. The returned list is modifiable. On modification of the returned list, the state of this object is changed.
      Specified by:
      getPreparedStatementReplacements in interface PreparedStatementPart
      Returns:
      the list of prepared statement replacements, not null.