Interface TableDataSource
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
TableDBDataSource
Provides an interface for a table based data source.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalColumnSpecs(List<AdditionalColumnSpec> additionalColumns) voidaddQueryComment(String comment) voidapplyColumnConfiguration(List<Column> columnList) voidapplyConfig(TableDatasourceConfig config) voidapplyParameters(ParameterSet paramterSet) voidvoidclose()voidSets a flag that tells the datasource to not execute the report as it is, but to only count the rows.voiddistinct(boolean enableDistinct) getFieldValue(int pos) If DataSource is not "open" open will be called and cursor will be moved to first "row"If DataSource is not "open" open will be calledbooleanisOpen()voidlimit(int number) booleannext()If DataSource is not "open" open will be calledvoidopen()voidvoidpaged(int offset, int length) voidsetIgnoreAnyColumnConfiguration(boolean b) voidsetPreFilter(FilterBlock rootBlock)
-
Method Details
-
countRows
void countRows()Sets a flag that tells the datasource to not execute the report as it is, but to only count the rows. -
getDatasourceContainerProvider
DatasourceContainerProvider getDatasourceContainerProvider() -
applyParameters
-
applyColumnConfiguration
-
limit
void limit(int number) -
distinct
void distinct(boolean enableDistinct) -
paged
void paged(int offset, int length) -
next
If DataSource is not "open" open will be called
- Throws:
ReportExecutorException
-
getFieldValue
If DataSource is not "open" open will be called and cursor will be moved to first "row"
- Throws:
ReportExecutorException
-
getTableDefinition
If DataSource is not "open" open will be called
- Throws:
ReportExecutorException
-
getPlainTableDefinition
TableDefinition getPlainTableDefinition() -
open
- Throws:
ReportExecutorException
-
open
- Throws:
ReportExecutorException
-
isOpen
boolean isOpen() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
setPreFilter
-
addAdditionalColumnSpecs
-
setIgnoreAnyColumnConfiguration
void setIgnoreAnyColumnConfiguration(boolean b) -
getParameters
ParameterSet getParameters() -
applyConfig
-
cancelStatement
void cancelStatement() -
addQueryComment
-