public class TableDBDataSource extends java.lang.Object implements TableDataSource
Constructor and Description |
---|
TableDBDataSource(java.sql.Connection connection,
java.lang.String query,
DatasourceContainerProvider datasourceContainerProvider,
DatabaseHelper dbHelper) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalColumnSpecs(java.util.List<AdditionalColumnSpec> additionalColumns) |
void |
addQueryComment(java.lang.String comment) |
void |
applyColumnConfiguration(java.util.List<Column> columnList) |
void |
applyConfig(TableDatasourceConfig config) |
void |
applyParameters(ParameterSet parameters) |
void |
cancelStatement() |
void |
close() |
void |
countRows()
Sets a flag that tells the datasource to not execute the report as it is, but
to only count the rows.
|
void |
distinct(boolean enableDistinct) |
java.sql.Connection |
getConnection() |
DatasourceContainerProvider |
getDatasourceContainerProvider() |
java.lang.Object |
getFieldValue(int pos)
If DataSource is not "open" open will be called and cursor will be moved to
first "row"
|
ManagedQuery |
getManagedQuery() |
ParameterSet |
getParameters() |
TableDefinition |
getPlainTableDefinition() |
TableDefinition |
getTableDefinition()
If DataSource is not "open" open will be called
|
boolean |
isOpen() |
void |
limit(int limit) |
boolean |
next()
If DataSource is not "open" open will be called
|
void |
open() |
void |
open(java.lang.String executorToken) |
void |
paged(int offset,
int length) |
void |
setIgnoreAnyColumnConfiguration(boolean ignore) |
void |
setPreFilter(FilterBlock rootBlock) |
public TableDBDataSource(java.sql.Connection connection, java.lang.String query, DatasourceContainerProvider datasourceContainerProvider, DatabaseHelper dbHelper)
public void applyConfig(TableDatasourceConfig config)
applyConfig
in interface TableDataSource
public DatasourceContainerProvider getDatasourceContainerProvider()
getDatasourceContainerProvider
in interface TableDataSource
public TableDefinition getPlainTableDefinition()
getPlainTableDefinition
in interface TableDataSource
public java.sql.Connection getConnection()
public ManagedQuery getManagedQuery()
public void addQueryComment(java.lang.String comment)
addQueryComment
in interface TableDataSource
public java.lang.Object getFieldValue(int pos) throws ReportExecutorException
TableDataSource
If DataSource is not "open" open will be called and cursor will be moved to first "row"
getFieldValue
in interface TableDataSource
ReportExecutorException
public TableDefinition getTableDefinition() throws ReportExecutorException
TableDataSource
If DataSource is not "open" open will be called
getTableDefinition
in interface TableDataSource
ReportExecutorException
public boolean next() throws ReportExecutorException
TableDataSource
If DataSource is not "open" open will be called
next
in interface TableDataSource
ReportExecutorException
public void open() throws ReportExecutorException
open
in interface TableDataSource
ReportExecutorException
public void open(java.lang.String executorToken) throws ReportExecutorException
open
in interface TableDataSource
ReportExecutorException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface TableDataSource
public boolean isOpen()
isOpen
in interface TableDataSource
public void applyParameters(ParameterSet parameters)
applyParameters
in interface TableDataSource
public ParameterSet getParameters()
getParameters
in interface TableDataSource
public void applyColumnConfiguration(java.util.List<Column> columnList)
applyColumnConfiguration
in interface TableDataSource
public void addAdditionalColumnSpecs(java.util.List<AdditionalColumnSpec> additionalColumns)
addAdditionalColumnSpecs
in interface TableDataSource
public void limit(int limit)
limit
in interface TableDataSource
public void countRows()
TableDataSource
countRows
in interface TableDataSource
public void distinct(boolean enableDistinct)
distinct
in interface TableDataSource
public void paged(int offset, int length)
paged
in interface TableDataSource
public void setPreFilter(FilterBlock rootBlock)
setPreFilter
in interface TableDataSource
public void setIgnoreAnyColumnConfiguration(boolean ignore)
setIgnoreAnyColumnConfiguration
in interface TableDataSource
public void cancelStatement()
cancelStatement
in interface TableDataSource