T
- as entity type whose list it will returnpublic class DataSourceReporter<T> extends AbstractReporter<T>
dataGenerator
and countQuery
Process.Event, Process.EventPoint
columnNames, params, recordTransformer
Constructor and Description |
---|
DataSourceReporter() |
DataSourceReporter(Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
long |
getCount(Object[] _params) |
protected long |
getCount(Object[] _params,
org.apache.commons.collections.Transformer countQuery) |
org.apache.commons.collections.Transformer |
getCountQuery()
Run a count query for the
dataGenerator |
org.apache.commons.collections.Transformer |
getDataGenerator()
Generate the Source tuples from the Data Source; the Transformer should return a List of objects (see
JPAQueryTransformer ) |
org.apache.commons.collections.Transformer |
getNoParamsCountQuery()
|
org.apache.commons.collections.Transformer |
getNoParamsDataGenerator()
An optional no param based data generator.
|
List<T> |
getReport(Object[] _params,
PageInfo pageInfo) |
protected List<T> |
getReport(Object[] _params,
PageInfo pageInfo,
org.apache.commons.collections.Transformer dataGenerator) |
ReporterMeta |
getReporterMeta()
Reference to
ReporterMeta Can be used to refer to original details about various columns in the Report. |
void |
setCountQuery(org.apache.commons.collections.Transformer countQuery)
Run a count query for the
dataGenerator |
void |
setDataGenerator(org.apache.commons.collections.Transformer dataGenerator)
Generate the Source tuples from the Data Source; the Transformer should return a List of objects (see
JPAQueryTransformer ) |
void |
setNoParamsCountQuery(org.apache.commons.collections.Transformer noParamsCountQuery)
|
void |
setNoParamsDataGenerator(org.apache.commons.collections.Transformer noParamsDataGenerator)
An optional no param based data generator.
|
void |
setReporterMeta(ReporterMeta reporterMeta)
Reference to
ReporterMeta Can be used to refer to original details about various columns in the Report. |
getColumnNames, getParams, getRecordTransformer, setColumnNames, setParams, setRecordTransformer
public DataSourceReporter()
public DataSourceReporter(Reporter reporter)
protected List<T> getReport(Object[] _params, PageInfo pageInfo, org.apache.commons.collections.Transformer dataGenerator)
protected long getCount(Object[] _params, org.apache.commons.collections.Transformer countQuery)
public List<T> getReport(Object[] _params, PageInfo pageInfo)
_params
- as Object[] @nullable true; params maybe even supplied by the context (check implementation)pageInfo
- as PageInfo
@nullable truepublic long getCount(Object[] _params)
_params
- as Object[] @nullable true; params maybe even supplied by the context (check implementation)public org.apache.commons.collections.Transformer getDataGenerator()
JPAQueryTransformer
)public void setDataGenerator(org.apache.commons.collections.Transformer dataGenerator)
JPAQueryTransformer
)public org.apache.commons.collections.Transformer getCountQuery()
dataGenerator
dataGenerator
to count if nullpublic void setCountQuery(org.apache.commons.collections.Transformer countQuery)
dataGenerator
dataGenerator
to count if nullpublic org.apache.commons.collections.Transformer getNoParamsDataGenerator()
public void setNoParamsDataGenerator(org.apache.commons.collections.Transformer noParamsDataGenerator)
public org.apache.commons.collections.Transformer getNoParamsCountQuery()
public void setNoParamsCountQuery(org.apache.commons.collections.Transformer noParamsCountQuery)
public ReporterMeta getReporterMeta()
ReporterMeta
ReporterMeta
public void setReporterMeta(ReporterMeta reporterMeta)
ReporterMeta
Copyright © 2018. All rights reserved.