Klasse PreparedStatementPartImpl

java.lang.Object
org.apache.torque.criteria.PreparedStatementPartImpl
Alle implementierten Schnittstellen:
Serializable, PreparedStatementPart

public class PreparedStatementPartImpl extends Object implements PreparedStatementPart, Serializable
Modifiable implementation of the PreparedStatementPart interface.
Version:
$Id: PreparedStatementPart.java 1701510 2015-09-06 18:45:05Z tfischer $
Siehe auch:
  • Konstruktordetails

    • PreparedStatementPartImpl

      public PreparedStatementPartImpl()
      Default constructor, creates an empty PreparedStatementPart.
    • PreparedStatementPartImpl

      public PreparedStatementPartImpl(String sql, Object... preparedStatementReplacements)
      Constructor, creates a pre-filled PreparedStatementPartImpl.
      Parameter:
      sql - The sql to fill into the sql buffer initially, or null.
      preparedStatementReplacements - the prepared statement replacements to start with, or null.
    • PreparedStatementPartImpl

      public PreparedStatementPartImpl(PreparedStatementPart toCopy)
      Copy-Constructor.
      Parameter:
      toCopy - the PreparedStatementPart to copy, not null.
  • Methodendetails

    • getSql

      public StringBuilder getSql()
      Returns the SQL of the part.
      Gibt zurück:
      the SQL as mutable StringBuilder, 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.
      Angegeben von:
      getPreparedStatementReplacements in Schnittstelle PreparedStatementPart
      Gibt zurück:
      the modifiable list of prepared statement replacements, not null.
    • append

      Appends another PreparedStatementPart to this part.
      Parameter:
      toAppend - the part to append, not null.
      Gibt zurück:
      this PreparedStatementPart (with toAppend appended).
    • append

      public PreparedStatementPartImpl append(SqlEnum toAppend)
      Appends a SqlEnum to this part.
      Parameter:
      toAppend - the part to append, not null.
      Gibt zurück:
      this PreparedStatementPart (with toAppend appended).
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object