ar.com.fdvs.dj.core.registration
Class AbstractEntityRegistrationManager
java.lang.Object
ar.com.fdvs.dj.core.registration.AbstractEntityRegistrationManager
- All Implemented Interfaces:
- DJConstants
- Direct Known Subclasses:
- ColumnRegistrationManager, ColumnsGroupVariablesRegistrationManager, ConditionalStylesRegistrationManager, DJCrosstabMeasureRegistrationManager, DJCrosstabRegistrationManager, DJGroupRegistrationManager, DJGroupVariableDefRegistrationManager, VariableRegistrationManager
public abstract class AbstractEntityRegistrationManager
- extends java.lang.Object
- implements DJConstants
Abstract Class used as base for the different Entities Registration Managers.
Every implementation of this class should know how to register a given Entity
and tranform it into any JasperReport object in order to add it to the
JasperDesign.
A Registration Manager is the first step required to create a report.
A subclass should be created only when we want to add new features to DJ.
Probably a new class from this hierarchy will imply a change to one or many
Layout Managers.
- See Also:
Entity
,
AbstractLayoutManager
Fields inherited from interface ar.com.fdvs.dj.core.DJConstants |
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_XLS, FORMAT_XML, HEADER, QUERY_LANGUAGE_EJBQL, QUERY_LANGUAGE_HQL, QUERY_LANGUAGE_MONDRIAN, QUERY_LANGUAGE_SQL, QUERY_LANGUAGE_XPATH, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEntityRegistrationManager
public AbstractEntityRegistrationManager(DynamicJasperDesign djd,
DynamicReport dr,
LayoutManager layoutManager)
registerEntities
public final void registerEntities(java.util.Collection entities)
throws EntitiesRegistrationException
- Throws:
EntitiesRegistrationException
registerEntity
protected abstract void registerEntity(Entity entity)
- Registers in the report's JasperDesign instance whatever is needed to
show a given entity.
- Parameters:
Entity
- entity
- Throws:
EntitiesRegistrationException
transformEntity
protected abstract java.lang.Object transformEntity(Entity entity)
throws net.sf.jasperreports.engine.JRException
- Transforms a DynamicJasper entity into a JasperReport one
(JRDesignField, JRDesignParameter, JRDesignVariable)
- Parameters:
Entity
- entity
- Throws:
EntitiesRegistrationException
net.sf.jasperreports.engine.JRException
registerCustomExpressionParameter
protected void registerCustomExpressionParameter(java.lang.String name,
CustomExpression customExpression)
getDynamicReport
public DynamicReport getDynamicReport()
getLayoutManager
public LayoutManager getLayoutManager()
getDjd
public DynamicJasperDesign getDjd()
Copyright © 2006-2011 FDV Solutions. All Rights Reserved.