R - the generic type of the result.E - the generic type of a single selection of the AbstractSelectStatement.T - the generic type of the internal results.public class QueryImpl<R,E,T> extends Object implements Query<R>
Query.| Modifier and Type | Field and Description |
|---|---|
private QueryMode |
mode |
private String |
sql |
private AbstractSelectStatement<E,?,T> |
statement |
| Constructor and Description |
|---|
QueryImpl(AbstractSelectStatement<E,?,T> statement,
String sql,
QueryMode mode)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
R |
execute()
|
protected Object |
executeInternal() |
QueryMode |
getMode() |
String |
getSql() |
protected AbstractSelectStatement<E,?,T> |
getStatement() |
String |
toString() |
private final AbstractSelectStatement<E,?,T> statement
private final String sql
private final QueryMode mode
public QueryImpl(AbstractSelectStatement<E,?,T> statement, String sql, QueryMode mode)
statement - the AbstractSelectStatement that created this
Query.sql - the SQL of the statement.mode - the QueryMode.public String getSql()
protected AbstractSelectStatement<E,?,T> getStatement()
AbstractSelectStatement that created this Query. Please note that the
statement can be modified after creating this Query and can also create additional queries. Hence
use getSql() from this Query instead of retrieving the SQL from this statement.protected Object executeInternal()
Copyright © 2001–2016 mmm-Team. All rights reserved.