Class JasperReportingEntityDataSource

java.lang.Object
net.sf.jasperreports.engine.data.JRAbstractBeanDataSource
net.sf.jasperreports.engine.data.JRBeanCollectionDataSource
org.iplass.mtp.web.template.report.JasperReportingEntityDataSource
All Implemented Interfaces:
net.sf.jasperreports.engine.JRDataSource, net.sf.jasperreports.engine.JRRewindableDataSource

public class JasperReportingEntityDataSource extends net.sf.jasperreports.engine.data.JRBeanCollectionDataSource
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.sf.jasperreports.engine.data.JRAbstractBeanDataSource

    net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.DefaultPropertyNameProvider
  • Field Summary

    Fields inherited from class net.sf.jasperreports.engine.data.JRAbstractBeanDataSource

    CURRENT_BEAN_MAPPING, EXCEPTION_MESSAGE_KEY_BEAN_FIELD_VALUE_NOT_RETRIEVED, PROPERTY_JAVABEAN_FIELD_PROPERTY, propertyNameProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JasperReportingEntityDataSource(Collection<?> beanCollection, boolean isUseFieldDescription)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    getEntityFieldValue(Entity entity, String propertyName)
     
    protected Object
    getFieldValue(Object bean, net.sf.jasperreports.engine.JRField field)
     

    Methods inherited from class net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

    cloneDataSource, getData, getFieldValue, getRecordCount, moveFirst, next

    Methods inherited from class net.sf.jasperreports.engine.data.JRAbstractBeanDataSource

    getBeanProperty, getPropertyName, isCurrentBeanMapping

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JasperReportingEntityDataSource

      public JasperReportingEntityDataSource(Collection<?> beanCollection)
    • JasperReportingEntityDataSource

      public JasperReportingEntityDataSource(Collection<?> beanCollection, boolean isUseFieldDescription)
  • Method Details

    • getFieldValue

      protected Object getFieldValue(Object bean, net.sf.jasperreports.engine.JRField field) throws net.sf.jasperreports.engine.JRException
      Overrides:
      getFieldValue in class net.sf.jasperreports.engine.data.JRAbstractBeanDataSource
      Throws:
      net.sf.jasperreports.engine.JRException
    • getEntityFieldValue

      protected Object getEntityFieldValue(Entity entity, String propertyName) throws net.sf.jasperreports.engine.JRException
      Throws:
      net.sf.jasperreports.engine.JRException