Class ModelBasedCsvPivotExportTemplate<ID extends Serializable,T extends AbstractEntity<ID>>
- java.lang.Object
-
- com.ocs.dynamo.ui.composite.export.impl.BaseExportTemplate<ID,T>
-
- com.ocs.dynamo.ui.composite.export.impl.BaseCsvExportTemplate<ID,T>
-
- com.ocs.dynamo.ui.composite.export.impl.ModelBasedCsvPivotExportTemplate<ID,T>
-
- Type Parameters:
ID- the type of the primary key of the entity to exportT- the type of the entity to export
public class ModelBasedCsvPivotExportTemplate<ID extends Serializable,T extends AbstractEntity<ID>> extends BaseCsvExportTemplate<ID,T>
Template for exported a pivoted data set to CSV- Author:
- Bas Rutten
-
-
Field Summary
-
Fields inherited from class com.ocs.dynamo.ui.composite.export.impl.BaseExportTemplate
FIXED_COLUMN_WIDTH, MAX_SIZE_BEFORE_STREAMING, PAGE_SIZE, TITLE_ROW_HEIGHT
-
-
Constructor Summary
Constructors Constructor Description ModelBasedCsvPivotExportTemplate(BaseService<ID,T> service, EntityModel<T> entityModel, SortOrder[] sortOrders, Filter filter, String title, PivotParameters pivotParameters, FetchJoinInformation... joins)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]generate(com.ocs.dynamo.domain.query.DataSetIterator<ID,T> iterator)Generates the file-
Methods inherited from class com.ocs.dynamo.ui.composite.export.impl.BaseExportTemplate
getEntityModel, getEntityModelFactory, getFilter, getJoins, getService, getSortOrders, getTitle, process, processFixed, show
-
-
-
-
Constructor Detail
-
ModelBasedCsvPivotExportTemplate
public ModelBasedCsvPivotExportTemplate(BaseService<ID,T> service, EntityModel<T> entityModel, SortOrder[] sortOrders, Filter filter, String title, PivotParameters pivotParameters, FetchJoinInformation... joins)
Constructor- Parameters:
service- the serviceentityModel- the entity modelexportMode- the export modesortOrders- the sort orders to apply to the datafilter-title-pivotParameters-joins-
-
-
Method Detail
-
generate
protected byte[] generate(com.ocs.dynamo.domain.query.DataSetIterator<ID,T> iterator) throws IOException
Description copied from class:BaseExportTemplateGenerates the file- Specified by:
generatein classBaseExportTemplate<ID extends Serializable,T extends AbstractEntity<ID>>- Parameters:
iterator- data set iterator that contains the rows to include- Returns:
- Throws:
IOException
-
-