Class CombinedPreparedStatementPart
java.lang.Object
org.apache.torque.sql.whereclausebuilder.CombinedPreparedStatementPart
- All Implemented Interfaces:
PreparedStatementPart
A PreparedStatementPart which consists of a list of other PreparedStatementParts.
- Version:
- $Id: $
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given replacement.voidappend(PreparedStatementPart toAdd) Adds a PreparedStatementPart to the list of contained PreparedStatementParts.voidAdds 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.
-
Constructor Details
-
CombinedPreparedStatementPart
public CombinedPreparedStatementPart()Constructor. Constructs an empty CombinedPreparedStatementPart. -
CombinedPreparedStatementPart
Constructor. Creates a CombinedPreparedStatementPart which contains the passed PreparedStatementPart as first part.- Parameters:
toAdd- the PreparedStatementPart to add, not null.
-
-
Method Details
-
append
Adds a PreparedStatementPart to the list of contained PreparedStatementParts.- Parameters:
toAdd- the PreparedStatementPart to add, not null.
-
appendSql
Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given sql.- Parameters:
sql- the sql to add, not null.
-
addPreparedStatementReplacement
Adds a PreparedStatementPart to the list of contained PreparedStatementParts, which contains only the given replacement.- Parameters:
toAdd- the replacement to add, not null.
-
getSqlAsString
Returns the SQL of the part as String.- Specified by:
getSqlAsStringin interfacePreparedStatementPart- Returns:
- the SQL, not null.
-
getPreparedStatementReplacements
Returns the list of prepared statement replacements. The returned list is unmodifiable.- Specified by:
getPreparedStatementReplacementsin interfacePreparedStatementPart- Returns:
- the list of prepared statement replacements, not null.
-