public class JRXlsxQueryExecuterFactory extends AbstractXlsQueryExecuterFactory
JRXlsxQueryExecuter
query executers.XLS_COLUMN_INDEXES, XLS_COLUMN_INDEXES_ARRAY, XLS_COLUMN_NAMES, XLS_COLUMN_NAMES_ARRAY, XLS_DATE_FORMAT, XLS_DATE_PATTERN, XLS_FILE, XLS_INPUT_STREAM, XLS_LOCALE, XLS_LOCALE_CODE, XLS_NUMBER_FORMAT, XLS_NUMBER_PATTERN, XLS_SHEET_SELECTION, XLS_SOURCE, XLS_TIMEZONE, XLS_TIMEZONE_ID, XLS_USE_FIRST_ROW_AS_HEADER, XLS_WORKBOOK
QUERY_EXECUTER_FACTORY_PREFIX
Constructor and Description |
---|
JRXlsxQueryExecuterFactory() |
Modifier and Type | Method and Description |
---|---|
JRQueryExecuter |
createQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> parameters)
Creates a query executer.
|
Object[] |
getBuiltinParameters()
Returns the built-in parameters associated with this query type.
|
boolean |
supportsQueryParameterType(String className)
Decides whether the query executers created by this factory support a query parameter type.
|
createQueryExecuter
public static final String XLSX_WORKBOOK
AbstractXlsQueryExecuterFactory.XLS_WORKBOOK
.org.apache.poi.ss.usermodel.Workbook
to be used for obtaining the XLSX data.public static final String XLSX_INPUT_STREAM
AbstractXlsQueryExecuterFactory.XLS_INPUT_STREAM
.java.io.InputStream
to be used for obtaining the XLSX data.public static final String XLSX_FILE
AbstractXlsQueryExecuterFactory.XLS_FILE
.java.io.File
to be used for obtaining the XLSX data.public static final String XLSX_SOURCE
AbstractXlsQueryExecuterFactory.XLS_SOURCE
.java.lang.String
source to be used for obtaining the XLSX data.public static final String XLSX_COLUMN_NAMES
AbstractXlsQueryExecuterFactory.XLS_COLUMN_NAMES
.java.lang.String
object containing column names separated by commas.
It can also be used as the prefix for custom dataset properties specifying the names of the XLSX columns in the format:
net.sf.jasperreports.xlsx.column.names.{arbitrary_name}=value1[, value2, ...]
public static final String XLSX_COLUMN_INDEXES
AbstractXlsQueryExecuterFactory.XLS_COLUMN_INDEXES
.java.lang.String
object containing column indexes separated by comma.
It can also be used as the prefix for custom dataset properties specifying the names of the XLSX column indexes in the format:
net.sf.jasperreports.xls.column.indexes.{arbitrary_name}=value1[, value2, ...]
public static final String XLSX_COLUMN_NAMES_ARRAY
AbstractXlsQueryExecuterFactory.XLS_COLUMN_NAMES_ARRAY
.java.lang.String[]
object.
When this parameter is null or missing, its value defaults to the values provided
by properties prefixed with XLSX_COLUMN_NAMES
.public static final String XLSX_COLUMN_INDEXES_ARRAY
AbstractXlsQueryExecuterFactory.XLS_COLUMN_INDEXES_ARRAY
.java.lang.Integer[]
object.
When this parameter is null or missing, its value defaults to the values provided
by properties prefixed with XLSX_COLUMN_INDEXES
.public static final String XLSX_LOCALE
AbstractXlsQueryExecuterFactory.XLS_LOCALE
.java.util.Locale
value of the locale to be used when parsing the XLSX data.public static final String XLSX_LOCALE_CODE
AbstractXlsQueryExecuterFactory.XLS_LOCALE_CODE
.java.lang.String
code of the locale to be used when parsing the XLSX data.
The allowed format is: language[_country[_variant]]public static final String XLSX_TIMEZONE
AbstractXlsQueryExecuterFactory.XLS_TIMEZONE
.java.util.TimeZone
value of the timezone to be used when parsing the XLSX data.public static final String XLSX_TIMEZONE_ID
AbstractXlsQueryExecuterFactory.XLS_TIMEZONE_ID
.java.lang.String
value of the time zone id to be used when parsing the XLSX data.public static final String XLSX_DATE_FORMAT
AbstractXlsQueryExecuterFactory.XLS_DATE_FORMAT
.java.text.DateFormat
used to format date columns from the XLSX source.public static final String XLSX_DATE_PATTERN
AbstractXlsQueryExecuterFactory.XLS_DATE_PATTERN
.public static final String XLSX_NUMBER_FORMAT
AbstractXlsQueryExecuterFactory.XLS_NUMBER_FORMAT
.java.text.NumberFormat
used to format numeric columns from the XLSX source.public static final String XLSX_NUMBER_PATTERN
AbstractXlsQueryExecuterFactory.XLS_NUMBER_PATTERN
.public static final String XLSX_USE_FIRST_ROW_AS_HEADER
AbstractXlsQueryExecuterFactory.XLS_USE_FIRST_ROW_AS_HEADER
.java.lang.Boolean
value, while as custom dataset property, it should be true or false.
If this parameter is set to true, then setting the XLSX_COLUMN_NAMES
or XLSX_COLUMN_NAMES_ARRAY
would have no effect.public Object[] getBuiltinParameters()
QueryExecuterFactory
{"Param1", String.class, "Param2", "List.class"}
).public JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parameters) throws JRException
QueryExecuterFactory
jasperReportsContext
- the JasperReportsContextdataset
- the dataset containing the query, fields, etcparameters
- map of value parameters (instances of JRValueParameter
)
indexed by nameJRException
public boolean supportsQueryParameterType(String className)
QueryExecuterFactory
className
- the value class name of the parameterCopyright © 2015. All rights reserved.