jdbreport.service
Class JDBReportService
java.lang.Object
jdbreport.service.JDBReportService
- All Implemented Interfaces:
- ReportService
public class JDBReportService
- extends Object
- implements ReportService
- Version:
- 1.0 07.02.2011
- Author:
- Andrey Kholmanskih
Method Summary |
protected void |
convert(OutputStream out,
FileType fileType,
ReportBook book)
|
byte[] |
convert(ReportBook book,
String format)
|
ReportDataSet |
createDataSet(String id,
Object ds)
|
protected Collection<ReportDataSet> |
createDataSets(Map<String,Object> dataSetList)
|
ReportBook |
createReportBook(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars)
|
String |
getMimeType(String format)
|
ReportBook |
getReportBook(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars)
|
ReportBook |
getReportBook(URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars)
|
byte[] |
getReportBuf(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars,
String format)
|
byte[] |
getReportBuf(URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars,
String format)
|
void |
writeReport(OutputStream out,
URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars,
String format)
|
void |
writeReport(OutputStream out,
URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars,
String format)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBReportService
public JDBReportService()
getReportBuf
public byte[] getReportBuf(URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars,
String format)
throws LoadReportException
- Specified by:
getReportBuf
in interface ReportService
- Throws:
LoadReportException
getReportBuf
public byte[] getReportBuf(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars,
String format)
throws LoadReportException
- Throws:
LoadReportException
getReportBook
public ReportBook getReportBook(URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars)
throws LoadReportException
- Throws:
LoadReportException
getReportBook
public ReportBook getReportBook(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars)
throws LoadReportException
- Throws:
LoadReportException
writeReport
public void writeReport(OutputStream out,
URL templateUrl,
Map<String,Object> dataSetList,
Map<Object,Object> vars,
String format)
throws LoadReportException
- Specified by:
writeReport
in interface ReportService
- Throws:
LoadReportException
writeReport
public void writeReport(OutputStream out,
URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars,
String format)
throws LoadReportException
- Throws:
LoadReportException
convert
protected void convert(OutputStream out,
FileType fileType,
ReportBook book)
throws LoadReportException
- Throws:
LoadReportException
getMimeType
public String getMimeType(String format)
- Specified by:
getMimeType
in interface ReportService
createReportBook
public ReportBook createReportBook(URL templateUrl,
Collection<ReportDataSet> dataSetList,
Map<Object,Object> vars)
throws LoadReportException
- Throws:
LoadReportException
createDataSets
protected Collection<ReportDataSet> createDataSets(Map<String,Object> dataSetList)
createDataSet
public ReportDataSet createDataSet(String id,
Object ds)
convert
public byte[] convert(ReportBook book,
String format)
throws LoadReportException
- Throws:
LoadReportException