Klasse CombinedPreparedStatementPart
java.lang.Object
org.apache.torque.sql.whereclausebuilder.CombinedPreparedStatementPart
- Alle implementierten Schnittstellen:
PreparedStatementPart
A PreparedStatementPart which consists of a list of other PreparedStatementParts.
- Version:
- $Id: $
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructor.Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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
Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given sql.Returns the list of prepared statement replacements.Returns the SQL of the part as String.
-
Konstruktordetails
-
CombinedPreparedStatementPart
public CombinedPreparedStatementPart()Constructor. Constructs an empty CombinedPreparedStatementPart. -
CombinedPreparedStatementPart
Constructor. Creates a CombinedPreparedStatementPart which contains the passed PreparedStatementPart as first part.- Parameter:
toAdd
- the PreparedStatementPart to add, not null.
-
-
Methodendetails
-
append
Adds a PreparedStatementPart to the list of contained PreparedStatementParts.- Parameter:
toAdd
- the PreparedStatementPart to add, not null.
-
appendSql
Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given sql.- Parameter:
sql
- the sql to add, not null.
-
addPreparedStatementReplacement
Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given replacement.- Parameter:
toAdd
- the replacement to add, 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. The returned list is unmodifiable.- Angegeben von:
getPreparedStatementReplacements
in SchnittstellePreparedStatementPart
- Gibt zurück:
- the list of prepared statement replacements, not null.
-