18 package org.turro.jpa.report;
20 import java.util.List;
21 import net.sf.jasperreports.engine.JRDataSource;
22 import net.sf.jasperreports.engine.JRException;
23 import net.sf.jasperreports.engine.JasperReport;
24 import net.sf.jasperreports.engine.data.JRAbstractBeanDataSourceProvider;
25 import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
26 import org.turro.jpa.Dao;
42 public JRDataSource
create(JasperReport report)
throws JRException {
43 return new JRBeanCollectionDataSource(
getDataList());
47 public void dispose(JRDataSource dataSource)
throws JRException {
void dispose(JRDataSource dataSource)
JRDataSource create(JasperReport report)
abstract List getDataList()
JPADataSourceProvider(Dao dao, Class beanClass)