public class ManagedQuery
extends java.lang.Object
Constructor and Description |
---|
ManagedQuery(HookHandlerService hookHandler,
FilterExecutorHooker filterExecutor,
EventBus eventBus,
java.lang.String query,
DatabaseHelper dbHelper,
TableDBDataSource datasource) |
Modifier and Type | Method and Description |
---|---|
QryCondition |
addQryConditionAND(QryCondition existing,
QryCondition add,
QueryBuilder queryBuilder) |
QryCondition |
addQryConditionOR(QryCondition existing,
QryCondition add,
QueryBuilder queryBuilder) |
void |
addQueryComment(java.lang.String comment) |
void |
applyColumnConfiguration(java.util.List<Column> columnList) |
void |
applyParameterSet(ParameterSet parameterSet) |
void |
distinct(boolean enableDistinct) |
java.util.List<AdditionalColumnSpec> |
getAdditionalColumns() |
Column |
getColumnByName(java.lang.String name) |
java.util.List<Column> |
getColumns() |
TableDBDataSource |
getDatasource() |
DatabaseHelper |
getDbHelper() |
java.lang.String |
getInnerQuery() |
java.util.List<java.lang.String> |
getPlainColumnNames() |
boolean |
hasAggregateColumns() |
boolean |
isCountRows() |
boolean |
isDistinct() |
void |
paged(int offset,
int length) |
void |
preFilter(FilterBlock rootBlock) |
java.lang.String |
preparePrelimStatement() |
java.lang.String |
preparePrelimStatement(java.util.Map<java.lang.String,ParameterValue> pMap,
java.sql.Connection connection) |
java.sql.PreparedStatement |
prepareStatement(java.sql.Connection connection) |
void |
setAdditionalColumnSpecs(java.util.List<AdditionalColumnSpec> additionalColumns) |
void |
setCountRows(boolean countRows) |
void |
setIgnoreAnyColumnConfiguration(boolean ignore)
if true ignores additional columns and prefilter
|
void |
setLimit(int limit) |
void |
setPlainColumnNames(java.util.List<java.lang.String> plainColumnNames) |
public ManagedQuery(HookHandlerService hookHandler, FilterExecutorHooker filterExecutor, EventBus eventBus, java.lang.String query, DatabaseHelper dbHelper, TableDBDataSource datasource)
public java.sql.PreparedStatement prepareStatement(java.sql.Connection connection) throws java.sql.SQLException, ReportExecutorException
java.sql.SQLException
ReportExecutorException
public java.lang.String preparePrelimStatement() throws java.sql.SQLException, ReportExecutorException
java.sql.SQLException
ReportExecutorException
public java.lang.String preparePrelimStatement(java.util.Map<java.lang.String,ParameterValue> pMap, java.sql.Connection connection) throws java.sql.SQLException, ReportExecutorException
java.sql.SQLException
ReportExecutorException
public QryCondition addQryConditionAND(QryCondition existing, QryCondition add, QueryBuilder queryBuilder)
public QryCondition addQryConditionOR(QryCondition existing, QryCondition add, QueryBuilder queryBuilder)
public void setLimit(int limit)
public void applyParameterSet(ParameterSet parameterSet)
public void applyColumnConfiguration(java.util.List<Column> columnList)
public boolean isCountRows()
public void setCountRows(boolean countRows)
public void distinct(boolean enableDistinct)
public void paged(int offset, int length)
public java.util.List<Column> getColumns()
public void preFilter(FilterBlock rootBlock)
public java.lang.String getInnerQuery()
public DatabaseHelper getDbHelper()
public void setPlainColumnNames(java.util.List<java.lang.String> plainColumnNames)
public void setAdditionalColumnSpecs(java.util.List<AdditionalColumnSpec> additionalColumns)
public java.util.List<AdditionalColumnSpec> getAdditionalColumns()
public TableDBDataSource getDatasource()
public void setIgnoreAnyColumnConfiguration(boolean ignore)
ignore
- public Column getColumnByName(java.lang.String name)
public void addQueryComment(java.lang.String comment)
public java.util.List<java.lang.String> getPlainColumnNames()
public boolean isDistinct()
public boolean hasAggregateColumns()