Package org.apache.torque.criteria
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:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault constructor, creates an empty PreparedStatementPart.PreparedStatementPartImpl
(String sql, Object... preparedStatementReplacements) Constructor, creates a pre-filled PreparedStatementPartImpl.Copy-Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungappend
(PreparedStatementPart toAppend) Appends another PreparedStatementPart to this part.Appends a SqlEnum to this part.boolean
Returns the list of prepared statement replacements.getSql()
Returns the SQL of the part.Returns the SQL of the part as String.int
hashCode()
toString()
-
Konstruktordetails
-
PreparedStatementPartImpl
public PreparedStatementPartImpl()Default constructor, creates an empty PreparedStatementPart. -
PreparedStatementPartImpl
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
Copy-Constructor.- Parameter:
toCopy
- the PreparedStatementPart to copy, not null.
-
-
Methodendetails
-
getSql
Returns the SQL of the part.- Gibt zurück:
- the SQL as mutable StringBuilder, not null.
-
getSqlAsString
Returns the SQL of the part as String.- Angegeben von:
getSqlAsString
in SchnittstellePreparedStatementPart
- Gibt zurück:
- the SQL, not null.
-
getPreparedStatementReplacements
Returns the list of prepared statement replacements.- Angegeben von:
getPreparedStatementReplacements
in SchnittstellePreparedStatementPart
- 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
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() -
equals
-
toString
-