BrightSide Workbench Full Report + Source Code
org.turro.jpa.report.JPADataSourceProvider Class Referenceabstract
Inheritance diagram for org.turro.jpa.report.JPADataSourceProvider:
Collaboration diagram for org.turro.jpa.report.JPADataSourceProvider:

Public Member Functions

 JPADataSourceProvider (Dao dao, Class beanClass)
 
JRDataSource create (JasperReport report) throws JRException
 
void dispose (JRDataSource dataSource) throws JRException
 

Protected Member Functions

abstract List getDataList ()
 

Protected Attributes

Dao dao
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file JPADataSourceProvider.java.

Constructor & Destructor Documentation

◆ JPADataSourceProvider()

org.turro.jpa.report.JPADataSourceProvider.JPADataSourceProvider ( Dao  dao,
Class  beanClass 
)

Definition at line 36 of file JPADataSourceProvider.java.

36  {
37  super(beanClass);
38  this.dao = dao;
39  }

Member Function Documentation

◆ create()

JRDataSource org.turro.jpa.report.JPADataSourceProvider.create ( JasperReport  report) throws JRException

Definition at line 42 of file JPADataSourceProvider.java.

42  {
43  return new JRBeanCollectionDataSource(getDataList());
44  }
Here is the call graph for this function:

◆ dispose()

void org.turro.jpa.report.JPADataSourceProvider.dispose ( JRDataSource  dataSource) throws JRException

Definition at line 47 of file JPADataSourceProvider.java.

47  {
48  // check whether lazy loads take effect
49  dao.close();
50  }
void close()
Definition: Dao.java:71
Here is the call graph for this function:

◆ getDataList()

abstract List org.turro.jpa.report.JPADataSourceProvider.getDataList ( )
abstractprotected
Here is the caller graph for this function:

Member Data Documentation

◆ dao

Dao org.turro.jpa.report.JPADataSourceProvider.dao
protected

Definition at line 34 of file JPADataSourceProvider.java.


The documentation for this class was generated from the following file: