|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ecar.util.jasper.JasperService
public class JasperService
Classe utilitaria para geracao de relatorio
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
logger
|
static java.lang.String |
PATH_RELATORIO
|
Constructor Summary | |
---|---|
JasperService()
|
Method Summary | |
---|---|
static void |
addRelatorio(net.sf.jasperreports.engine.JasperPrint relatorioOrigem,
net.sf.jasperreports.engine.JasperPrint relatorioDestino,
java.io.ByteArrayOutputStream out)
Adiciona o relatorioOrigem ao relatorioDestino |
static net.sf.jasperreports.engine.JasperPrint |
fillReport(net.sf.jasperreports.engine.JasperReport relatorio,
java.util.Map parametros)
Gera uma pre-impressao Jasper do objeto relatorio. |
static net.sf.jasperreports.engine.JasperPrint |
fillReport(net.sf.jasperreports.engine.JasperReport relatorio,
java.util.Map parametros,
net.sf.jasperreports.engine.data.JRBeanCollectionDataSource beanDS)
Gera uma pre-impressao Jasper do objeto relatorio. |
static byte[] |
geraRelatorioPDF(net.sf.jasperreports.engine.JasperPrint impressaoJasper)
|
static byte[] |
geraRelatorioPDF(net.sf.jasperreports.engine.JasperReport relatorio,
java.util.Map parametros,
net.sf.jasperreports.engine.data.JRBeanCollectionDataSource beanDS)
|
static java.lang.Integer |
getNumberOfPages(net.sf.jasperreports.engine.JasperPrint relatorio)
|
static net.sf.jasperreports.engine.JasperReport |
loadReport(java.lang.String pathReport)
Carrega o arquivo .jasper ( Relatorio compilado ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger logger
public static java.lang.String PATH_RELATORIO
Constructor Detail |
---|
public JasperService()
Method Detail |
---|
public static net.sf.jasperreports.engine.JasperReport loadReport(java.lang.String pathReport)
path
- ( URL absoluta ) do arquivo .jasper
public static net.sf.jasperreports.engine.JasperPrint fillReport(net.sf.jasperreports.engine.JasperReport relatorio, java.util.Map parametros, net.sf.jasperreports.engine.data.JRBeanCollectionDataSource beanDS)
relatorio
- objeto Jasperparametros
- do relatoriobeanDS
- data Source do relatorio
public static net.sf.jasperreports.engine.JasperPrint fillReport(net.sf.jasperreports.engine.JasperReport relatorio, java.util.Map parametros)
relatorio
- objeto Jasperparametros
- do relatoriobeanDS
- data Source do relatorio
public static java.lang.Integer getNumberOfPages(net.sf.jasperreports.engine.JasperPrint relatorio)
public static void addRelatorio(net.sf.jasperreports.engine.JasperPrint relatorioOrigem, net.sf.jasperreports.engine.JasperPrint relatorioDestino, java.io.ByteArrayOutputStream out)
relatorioOrigem
- impressao Jasper que deve ser copiadorelatorioDestino
- impressao Jasper Destino, � aqui que vai ser adicionado o outro relatoriopublic static byte[] geraRelatorioPDF(net.sf.jasperreports.engine.JasperPrint impressaoJasper)
public static byte[] geraRelatorioPDF(net.sf.jasperreports.engine.JasperReport relatorio, java.util.Map parametros, net.sf.jasperreports.engine.data.JRBeanCollectionDataSource beanDS)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |