public class Poi3_5XLSExporterUtils extends AbstractXLSExporter implements XLSExporter
| Modifier and Type | Field and Description |
|---|---|
static org.apache.poi.ss.usermodel.CellStyle |
cs_currency |
static org.apache.poi.ss.usermodel.CellStyle |
cs_date |
static org.apache.poi.ss.usermodel.CellStyle |
cs_date_hour |
static org.apache.poi.ss.usermodel.CellStyle |
cs_percent |
static org.apache.poi.ss.usermodel.CellStyle |
cs_real |
static org.apache.poi.ss.usermodel.CellStyle |
cs_style |
static String |
dateFormat |
static String |
dateHourFormat |
static DecimalFormat |
decimalFormat |
static String |
decimalPattern |
static DecimalFormatSymbols |
dfs |
protected static org.apache.poi.ss.usermodel.Drawing |
drawing |
protected static org.apache.poi.ss.usermodel.CreationHelper |
helper |
static int |
MAX_ROWS_XLS |
static int |
MAX_ROWS_XLSX |
static DecimalFormat |
numericFormat |
static String |
numericPattern |
static SimpleDateFormat |
sdf |
static SimpleDateFormat |
sdfHour |
protected static Charset |
utf8charset |
CURRENCY_CELL, currencyPattern, currencySymbols, DATE_CELL, DATE_HOUR_CELL, DECIMAL_CELL, IMAGE_CELL, NUMERIC_CELL, PERCENT_CELL, REAL_CELL, TEXT_CELL| Constructor and Description |
|---|
Poi3_5XLSExporterUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static float |
calculateRowHeight(Hashtable<Object,Object> sqlColumnTypes)
Calculates row height according to presence of images.
|
protected static List |
checkSheetNames(int size,
List sheetNames) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
boolean writeHeader,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
boolean writeHeader,
boolean xlsx,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
List columnStyles,
List columnHeaderStyles,
org.apache.poi.ss.usermodel.Workbook wb,
boolean writeHeader,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
List columnStyles,
List columnHeaderStyles,
org.apache.poi.ss.usermodel.Workbook wb,
boolean writeHeader,
boolean xlsx,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
List columnSort,
boolean writeHeader,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
List columnSort,
boolean writeHeader,
boolean xlsx,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
List columnSort,
List columnStyles,
List columnHeaderStyles,
org.apache.poi.ss.usermodel.Workbook wb,
boolean writeHeader,
boolean openFile) |
void |
createXLS(EntityResult rs,
File output,
String sheetName,
List columnSort,
List columnStyles,
List columnHeaderStyles,
org.apache.poi.ss.usermodel.Workbook wb,
boolean writeHeader,
boolean xlsx,
boolean openFile) |
static void |
createXLS(EntityResult rs,
OutputStream os,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
boolean writeHeader,
boolean xlsx) |
static void |
createXLS(EntityResult rs,
OutputStream os,
String sheetName,
Hashtable hColumnRenderers,
List columnSort,
List columnStyles,
List columnHeaderStyles,
org.apache.poi.ss.usermodel.Workbook wb,
boolean xlsx,
boolean writeHeader) |
static void |
createXLS(List entityResultsList,
OutputStream os,
List sheetNames,
Hashtable hColumnRenderers,
List columnSort,
boolean writeHeader) |
static void |
createXLS(List entityResultsList,
OutputStream os,
List sheetNames,
Hashtable hColumnRenderers,
List columnSort,
boolean writeHeader,
boolean xlsx) |
static Object |
createXSSFWorkbook() |
static String |
getDecimalPattern(DecimalFormatSymbols decimalSymbols) |
static String |
getNumericPattern(DecimalFormatSymbols decimalSymbols) |
protected static void |
setColumnStyle(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List orderColumns,
List columnStyles,
Hashtable hColumnRenderers,
Hashtable hColumnTypes) |
protected static void |
writeLine(Object wb,
org.apache.poi.xssf.usermodel.XSSFSheet sheet,
List values,
List orderColumns,
Hashtable hColumnRenderers,
List columnStyles,
Hashtable hColumnTypes) |
protected static void |
writeLine(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List order,
Hashtable hColumnRenderers,
Hashtable hColumnTypes) |
protected static void |
writeLine(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List orderColumns,
Hashtable hColumnRenderers,
List columnStyles,
Hashtable hColumnTypes) |
protected static void |
writeLineWithoutStyle(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List orderColumns,
Hashtable hColumnRenderers,
List columnStyles,
Hashtable hColumnTypes) |
protected static void |
writeSheet_(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
List columnStyles,
List columnHeaderStyles,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader) |
protected static void |
writeSheet(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
List columnStyles,
List columnHeaderStyles,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader) |
protected static void |
writeSheet(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader)
Allow to define styles for columns instead of one by cell, increasing the
performance.
|
getCellType, getCurrencySymbol, getPercentSymbolpublic static DecimalFormatSymbols dfs
public static String numericPattern
public static String decimalPattern
protected static Charset utf8charset
public static DecimalFormat numericFormat
public static DecimalFormat decimalFormat
public static String dateFormat
public static SimpleDateFormat sdf
public static String dateHourFormat
public static SimpleDateFormat sdfHour
public static org.apache.poi.ss.usermodel.CellStyle cs_style
public static org.apache.poi.ss.usermodel.CellStyle cs_date_hour
public static org.apache.poi.ss.usermodel.CellStyle cs_date
public static org.apache.poi.ss.usermodel.CellStyle cs_currency
public static org.apache.poi.ss.usermodel.CellStyle cs_percent
public static org.apache.poi.ss.usermodel.CellStyle cs_real
protected static org.apache.poi.ss.usermodel.CreationHelper helper
protected static org.apache.poi.ss.usermodel.Drawing drawing
public static final int MAX_ROWS_XLSX
public static final int MAX_ROWS_XLS
public static String getDecimalPattern(DecimalFormatSymbols decimalSymbols)
public static String getNumericPattern(DecimalFormatSymbols decimalSymbols)
public void createXLS(EntityResult rs, File output, String sheetName, Hashtable hColumnRenderers, List columnSort, boolean writeHeader, boolean xlsx, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic static void createXLS(List entityResultsList, OutputStream os, List sheetNames, Hashtable hColumnRenderers, List columnSort, boolean writeHeader, boolean xlsx) throws IOException
IOExceptionprotected static float calculateRowHeight(Hashtable<Object,Object> sqlColumnTypes)
sqlColumnTypes - Sql typespublic static void createXLS(List entityResultsList, OutputStream os, List sheetNames, Hashtable hColumnRenderers, List columnSort, boolean writeHeader) throws IOException
IOExceptionpublic static void createXLS(EntityResult rs, OutputStream os, String sheetName, Hashtable hColumnRenderers, List columnSort, boolean writeHeader, boolean xlsx) throws IOException
IOExceptionprotected static void writeSheet(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader)
wb - columns - protected static void setColumnStyle(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List orderColumns,
List columnStyles,
Hashtable hColumnRenderers,
Hashtable hColumnTypes)
protected static void writeSheet(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
List columnStyles,
List columnHeaderStyles,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader)
protected static void writeLineWithoutStyle(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List orderColumns,
Hashtable hColumnRenderers,
List columnStyles,
Hashtable hColumnTypes)
protected static void writeSheet_(org.apache.poi.ss.usermodel.Workbook wb,
EntityResult rs,
List order,
List columnStyles,
List columnHeaderStyles,
String sheetName,
Hashtable hColumnRenderers,
boolean writeHeader)
protected static void writeLine(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List orderColumns,
Hashtable hColumnRenderers,
List columnStyles,
Hashtable hColumnTypes)
protected static void writeLine(Object wb, org.apache.poi.xssf.usermodel.XSSFSheet sheet, List values, List orderColumns, Hashtable hColumnRenderers, List columnStyles, Hashtable hColumnTypes)
protected static void writeLine(org.apache.poi.ss.usermodel.Workbook wb,
org.apache.poi.ss.usermodel.Sheet sheet,
List values,
List order,
Hashtable hColumnRenderers,
Hashtable hColumnTypes)
public static void createXLS(EntityResult rs, OutputStream os, String sheetName, Hashtable hColumnRenderers, List columnSort, List columnStyles, List columnHeaderStyles, org.apache.poi.ss.usermodel.Workbook wb, boolean xlsx, boolean writeHeader) throws Exception
Exceptionpublic void createXLS(EntityResult rs, File output, String sheetName, Hashtable hColumnRenderers, List columnSort, List columnStyles, List columnHeaderStyles, org.apache.poi.ss.usermodel.Workbook wb, boolean writeHeader, boolean xlsx, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic static Object createXSSFWorkbook()
public void createXLS(EntityResult rs, File output, String sheetName, Hashtable hColumnRenderers, List columnSort, boolean writeHeader, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic void createXLS(EntityResult rs, File output, String sheetName, Hashtable hColumnRenderers, List columnSort, List columnStyles, List columnHeaderStyles, org.apache.poi.ss.usermodel.Workbook wb, boolean writeHeader, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic void createXLS(EntityResult rs, File output, String sheetName, List columnSort, boolean writeHeader, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic void createXLS(EntityResult rs, File output, String sheetName, List columnSort, boolean writeHeader, boolean xlsx, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic void createXLS(EntityResult rs, File output, String sheetName, List columnSort, List columnStyles, List columnHeaderStyles, org.apache.poi.ss.usermodel.Workbook wb, boolean writeHeader, boolean xlsx, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionpublic void createXLS(EntityResult rs, File output, String sheetName, List columnSort, List columnStyles, List columnHeaderStyles, org.apache.poi.ss.usermodel.Workbook wb, boolean writeHeader, boolean openFile) throws Exception
createXLS in interface XLSExporterExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.