public class QCBatchRunFile extends BaseJavaReport
DISPLAY_TYPE_CSV, DISPLAY_TYPE_DOC, DISPLAY_TYPE_DOCX, DISPLAY_TYPE_HTML, DISPLAY_TYPE_PDF, DISPLAY_TYPE_RTF, DISPLAY_TYPE_XLS, DISPLAY_TYPE_XLSX, REPORTTYPE_BO, REPORTTYPE_EMBEDDEDJASPER, REPORTTYPE_JASPER, REPORTTYPE_JAVA, REPORTTYPE_NWA, REPORTTYPE_TALEND| Constructor and Description |
|---|
QCBatchRunFile() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLogicalFileName(java.lang.String defaultFileName)
Return the logical name of the file.
|
java.lang.String[] |
getReportParameters() |
protected XSSFWorkbook |
getXSSFWorkBookFromDataSet(java.lang.String sheetTitle,
DataSet ds,
java.util.List<java.lang.String> titles,
java.util.List<java.lang.String> columnIds,
boolean autoSizeColumns)
Utility function to quickly create a POI workbook from a DataSet.
|
void |
init(java.lang.String reportid,
java.lang.String reportVersionid,
java.util.HashMap paramsMap,
ConnectionInfo connectionInfo)
In this oiverride you can retain this information needed downstream, such as the report parameters
|
void |
runReport(java.io.OutputStream outputStream)
Send the contents of the report to this output stream to be sent to a browser or to a file
|
adjustPrintOptions, canPrint, getClassLoader, getMimeType, sendToPrinter, setClassLoadergetAccessorErrorIds, getAccessorErrorMsgs, getActionProcessor, getConfigurationProcessor, getConnectionid, getConnectionId, getConnectionProcessor, getDAMProcessor, getDepartmentList, getHttpProcessor, getQueryProcessor, getRakFile, getSDCProcessor, getSDIProcessor, getSequenceProcessor, getTranslationProcessor, setConnectionId, setLanguage, setRakFilepublic void init(java.lang.String reportid,
java.lang.String reportVersionid,
java.util.HashMap paramsMap,
ConnectionInfo connectionInfo)
BaseJavaReportinit in class BaseJavaReportpublic java.lang.String getLogicalFileName(java.lang.String defaultFileName)
BaseJavaReportgetLogicalFileName in class BaseJavaReportpublic java.lang.String[] getReportParameters()
getReportParameters in class BaseJavaReportpublic void runReport(java.io.OutputStream outputStream)
throws SapphireException
BaseJavaReportrunReport in class BaseJavaReportSapphireExceptionprotected XSSFWorkbook getXSSFWorkBookFromDataSet(java.lang.String sheetTitle,
DataSet ds,
java.util.List<java.lang.String> titles,
java.util.List<java.lang.String> columnIds,
boolean autoSizeColumns)
BaseJavaReportgetXSSFWorkBookFromDataSet in class BaseJavaReportsheetTitle - Name of the sheetds - Dataset to be transformedtitles - Optional list of titles to each column to be displayed in the first row. If provided, the number of titles must match the nubmer of columns to export. Note that any column in the dataset prefixed with "_" will be ignored.columnIds - Optional list of columns to export. Note that any column in the dataset prefixed with "_" will be ignoredautoSizeColumns - After the data has been loaded, this option allows the width of the spreadsheet columns to be auto-sized