public abstract class AbstractEntityRegistrationManager extends Object implements DJConstants
Entity
,
AbstractLayoutManager
COLOR_SCHEMA_BLUE, COLOR_SCHEMA_GRAY, COLOR_SCHEMA_LIGHT_GREEN, COLOR_SCHEMA_PINK, COLOR_SCHEMA_PINK_AND_BROWN, COLOR_SCHEMA_VIOLET, COLOR_SCHEMA_WHITE, CUSTOM_EXPRESSION__PARAMETERS_MAP, DATA_SOURCE_ORIGIN_FIELD, DATA_SOURCE_ORIGIN_PARAMETER, DATA_SOURCE_ORIGIN_REPORT_DATASOURCE, DATA_SOURCE_ORIGIN_USE_REPORT_CONNECTION, DATA_SOURCE_TYPE_ARRAY, DATA_SOURCE_TYPE_COLLECTION, DATA_SOURCE_TYPE_CSV, DATA_SOURCE_TYPE_HIBERNATE_ITERATE, DATA_SOURCE_TYPE_HIBERNATE_LIST, DATA_SOURCE_TYPE_HIBERNATE_SCROLL, DATA_SOURCE_TYPE_JPA, DATA_SOURCE_TYPE_JRDATASOURCE, DATA_SOURCE_TYPE_MONDRIAN, DATA_SOURCE_TYPE_OGNL_VALUE_STACK, DATA_SOURCE_TYPE_RESULTSET, DATA_SOURCE_TYPE_SQL_CONNECTION, DATA_SOURCE_TYPE_XML, FOOTER, FORMAT_CSV, FORMAT_HTML, FORMAT_PDF, FORMAT_RTF, FORMAT_XLS, FORMAT_XML, HEADER, QUERY_LANGUAGE_EJBQL, QUERY_LANGUAGE_HQL, QUERY_LANGUAGE_MONDRIAN, QUERY_LANGUAGE_SQL, QUERY_LANGUAGE_XPATH, REPORT_LANGUAGE_GROOVY, REPORT_LANGUAGE_JAVA, REPORT_LANGUAGE_JAVASCRIPT, SUBREPORT_PARAM_ORIGIN_CUSTOM, SUBREPORT_PARAM_ORIGIN_FIELD, SUBREPORT_PARAM_ORIGIN_PARAMETER, SUBREPORT_PARAM_ORIGIN_VARIABLE, SUBREPORT_PARAMETER_MAP_ORIGIN_FIELD, SUBREPORT_PARAMETER_MAP_ORIGIN_PARAMETER, WHEN_NO_DATA_TYPE_ALL_SECTIONS_NO_DETAIL, WHEN_NO_DATA_TYPE_BLANK_PAGE, WHEN_NO_DATA_TYPE_NO_DATA_SECTION, WHEN_NO_DATA_TYPE_NO_PAGES, WHEN_RESOURCE_MISSING_TYPE_EMPTY, WHEN_RESOURCE_MISSING_TYPE_ERROR, WHEN_RESOURCE_MISSING_TYPE_KEY, WHEN_RESOURCE_MISSING_TYPE_NULL
Constructor and Description |
---|
AbstractEntityRegistrationManager(DynamicJasperDesign djd,
DynamicReport dr,
LayoutManager layoutManager) |
Modifier and Type | Method and Description |
---|---|
DynamicJasperDesign |
getDjd() |
DynamicReport |
getDynamicReport() |
LayoutManager |
getLayoutManager() |
protected void |
registerCustomExpressionParameter(String name,
CustomExpression customExpression) |
void |
registerEntities(Collection entities) |
protected abstract void |
registerEntity(Entity entity)
Registers in the report's JasperDesign instance whatever is needed to
show a given entity.
|
protected abstract Object |
transformEntity(Entity entity)
Transforms a DynamicJasper entity into a JasperReport one
(JRDesignField, JRDesignParameter, JRDesignVariable)
|
public AbstractEntityRegistrationManager(DynamicJasperDesign djd, DynamicReport dr, LayoutManager layoutManager)
public final void registerEntities(Collection entities) throws EntitiesRegistrationException
EntitiesRegistrationException
protected abstract void registerEntity(Entity entity)
Entity
- entityEntitiesRegistrationException
protected abstract Object transformEntity(Entity entity) throws net.sf.jasperreports.engine.JRException
Entity
- entityEntitiesRegistrationException
net.sf.jasperreports.engine.JRException
protected void registerCustomExpressionParameter(String name, CustomExpression customExpression)
public DynamicReport getDynamicReport()
public LayoutManager getLayoutManager()
public DynamicJasperDesign getDjd()
Copyright © 2006–2015 FDV Solutions. All rights reserved.