Package org.apache.torque.sql.whereclausebuilder

# Klasse CombinedPreparedStatementPart

java.lang.Object
org.apache.torque.sql.whereclausebuilder.CombinedPreparedStatementPart

Alle implementierten Schnittstellen:
  `PreparedStatementPart`

public class CombinedPreparedStatementPart extends Object implements PreparedStatementPart
A PreparedStatementPart which consists of a list of other PreparedStatementParts.

Version:
  $Id: $

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `CombinedPreparedStatementPart()`
  Constructor.
  `CombinedPreparedStatementPart(PreparedStatementPart toAdd)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `void`
  `addPreparedStatementReplacement(Object toAdd)`
  Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given replacement.
  `void`
  `append(PreparedStatementPart toAdd)`
  Adds a PreparedStatementPart to the list of contained PreparedStatementParts.
  `void`
  `appendSql(String sql)`
  Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given sql.
  `List<Object>`
  `getPreparedStatementReplacements()`
  Returns the list of prepared statement replacements.
  `String`
  `getSqlAsString()`
  Returns the SQL of the part as String.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### CombinedPreparedStatementPart

    public CombinedPreparedStatementPart()
    Constructor. Constructs an empty CombinedPreparedStatementPart.

  - ### CombinedPreparedStatementPart

    public CombinedPreparedStatementPart(PreparedStatementPart toAdd)
    Constructor. Creates a CombinedPreparedStatementPart which contains the passed PreparedStatementPart as first part.
    Parameter:
      `toAdd` - the PreparedStatementPart to add, not null.

- ## Methodendetails

  - ### append

    public void append(PreparedStatementPart toAdd)
    Adds a PreparedStatementPart to the list of contained PreparedStatementParts.
    Parameter:
      `toAdd` - the PreparedStatementPart to add, not null.

  - ### appendSql

    public void appendSql(String sql)
    Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given sql.
    Parameter:
      `sql` - the sql to add, not null.

  - ### addPreparedStatementReplacement

    public void addPreparedStatementReplacement(Object toAdd)
    Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given replacement.
    Parameter:
      `toAdd` - the replacement to add, not null.

  - ### getSqlAsString

    public String getSqlAsString()
    Returns the SQL of the part as String.
    Angegeben von:
      `getSqlAsString` in Schnittstelle `PreparedStatementPart`
    Gibt zurück:
      the SQL, not null.

  - ### getPreparedStatementReplacements

    public List<Object> getPreparedStatementReplacements()
    Returns the list of prepared statement replacements. The returned list is unmodifiable.
    Angegeben von:
      `getPreparedStatementReplacements` in Schnittstelle `PreparedStatementPart`
    Gibt zurück:
      the list of prepared statement replacements, not null.