Klasse PreparedStatementPartForSubselect
java.lang.Object
org.apache.torque.sql.objectbuilder.PreparedStatementPartForSubselect
- Alle implementierten Schnittstellen:
PreparedStatementPart
A PreparedStatementPart which encapsulates a subselect.
The SQL and Replacements are not calculated immediately,
but wait for the outer clause to be completed,
as tables in the from clause which reference tables in the outer select
are removed, and this can only be done when the outer query is known.
This only works if the methofs getSqlAsString()
and getPreparedStatementReplacements() are called after the outer query
is calculated.
- Version:
- $Id: $
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPreparedStatementPartForSubselect
(Criteria toBuildFrom, Query outerQuery) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the list of prepared statement replacements.Returns the SQL of the part as String.
-
Konstruktordetails
-
PreparedStatementPartForSubselect
Constructor.- Parameter:
toBuildFrom
- The criteria to build the subselect from.outerQuery
- The outer query in which this subselect is embedded.
-
-
Methodendetails
-
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 implementation may or may not return a list which is modifiable and which may or may not, in case of modification, change the internal state of the surrounding PreparedStatementPart.- Angegeben von:
getPreparedStatementReplacements
in SchnittstellePreparedStatementPart
- Gibt zurück:
- the list of prepared statement replacements, not null.
-