Class JRXlsxQueryExecuterFactory
java.lang.Object
net.sf.jasperreports.engine.query.AbstractQueryExecuterFactory
net.sf.jasperreports.engine.query.AbstractXlsQueryExecuterFactory
net.sf.jasperreports.engine.query.JRXlsxQueryExecuterFactory
- All Implemented Interfaces:
JRQueryExecuterFactory,QueryExecuterFactory,Designated
Deprecated.
Query executer factory for XLSX file type.
The factory creates
JRXlsxQueryExecuter
query executers.- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_COLUMN_INDEXES.static final StringDeprecated.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_COLUMN_NAMES.static final StringDeprecated.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_DATE_FORMAT.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_DATE_PATTERN.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_FILE.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_INPUT_STREAM.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_LOCALE.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_LOCALE_CODE.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_NUMBER_FORMAT.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_NUMBER_PATTERN.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_SOURCE.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_TIMEZONE.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_TIMEZONE_ID.static final StringDeprecated.static final StringDeprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_WORKBOOK.Fields inherited from class net.sf.jasperreports.engine.query.AbstractXlsQueryExecuterFactory
QUERY_EXECUTER_NAME, 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_WORKBOOKFields inherited from interface net.sf.jasperreports.engine.query.QueryExecuterFactory
QUERY_EXECUTER_FACTORY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String, ? extends JRValueParameter> parameters) Deprecated.Creates a query executer.createQueryExecuter(QueryExecutionContext context, JRDataset dataset, Map<String, ? extends JRValueParameter> parameters) Deprecated.Object[]Deprecated.Returns the built-in parameters associated with this query type.booleansupportsQueryParameterType(String className) Deprecated.Decides whether the query executers created by this factory support a query parameter type.Methods inherited from class net.sf.jasperreports.engine.query.AbstractXlsQueryExecuterFactory
getDesignationMethods inherited from class net.sf.jasperreports.engine.query.AbstractQueryExecuterFactory
createQueryExecuter
-
Field Details
-
XLSX_WORKBOOK
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_WORKBOOK.Built-in parameter holding the value of theorg.apache.poi.ss.usermodel.Workbookto be used for obtaining the XLSX data.- See Also:
-
XLSX_INPUT_STREAM
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_INPUT_STREAM.Built-in parameter holding the value of thejava.io.InputStreamto be used for obtaining the XLSX data.- See Also:
-
XLSX_FILE
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_FILE.Built-in parameter holding the value of thejava.io.Fileto be used for obtaining the XLSX data.- See Also:
-
XLSX_SOURCE
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_SOURCE.Built-in parameter holding the value of thejava.lang.Stringsource to be used for obtaining the XLSX data.- See Also:
-
XLSX_COLUMN_NAMES
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_COLUMN_NAMES.Built-in parameter/property holding the value of the columns to be extracted from the XLSX source. When used as report parameter, the value has to be ajava.lang.Stringobject 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, ...]- See Also:
-
XLSX_COLUMN_INDEXES
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_COLUMN_INDEXES.Built-in parameter/property holding the value of the column indexs to be extracted from the XLSX source. When used as report parameter, the value has to be ajava.lang.Stringobject 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, ...]- See Also:
-
XLSX_COLUMN_NAMES_ARRAY
Deprecated.Built-in parameter holding the value of the columns to be extracted from the XLSX source, as ajava.lang.String[]object. When this parameter is null or missing, its value defaults to the values provided by properties prefixed withXLSX_COLUMN_NAMES.- See Also:
-
XLSX_COLUMN_INDEXES_ARRAY
Deprecated.Built-in parameter holding the value of the column indexes to be extracted from the XLSX source, as ajava.lang.Integer[]object. When this parameter is null or missing, its value defaults to the values provided by properties prefixed withXLSX_COLUMN_INDEXES.- See Also:
-
XLSX_LOCALE
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_LOCALE.Built-in parameter holding thejava.util.Localevalue of the locale to be used when parsing the XLSX data.- See Also:
-
XLSX_LOCALE_CODE
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_LOCALE_CODE.Built-in parameter/property holding thejava.lang.Stringcode of the locale to be used when parsing the XLSX data. The allowed format is: language[_country[_variant]]- See Also:
-
XLSX_TIMEZONE
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_TIMEZONE.Built-in parameter holding thejava.util.TimeZonevalue of the timezone to be used when parsing the XLSX data.- See Also:
-
XLSX_TIMEZONE_ID
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_TIMEZONE_ID.Built-in parameter/property holding thejava.lang.Stringvalue of the time zone id to be used when parsing the XLSX data.- See Also:
-
XLSX_DATE_FORMAT
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_DATE_FORMAT.Built-in parameter holding the value of thejava.text.DateFormatused to format date columns from the XLSX source.- See Also:
-
XLSX_DATE_PATTERN
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_DATE_PATTERN.Built-in parameter/property holding the value of the date format pattern to be used when parsing the XLSX data.- See Also:
-
XLSX_NUMBER_FORMAT
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_NUMBER_FORMAT.Built-in parameter holding the value of thejava.text.NumberFormatused to format numeric columns from the XLSX source.- See Also:
-
XLSX_NUMBER_PATTERN
Deprecated.Replaced byAbstractXlsQueryExecuterFactory.XLS_NUMBER_PATTERN.Built-in parameter/property holding the value of the number format pattern to be used when parsing the XLSX data.- See Also:
-
XLSX_USE_FIRST_ROW_AS_HEADER
Deprecated.Built-in parameter/property specifying whether or not the column names should be obtained from the first row in the XLSX source. As parameter, it should hold ajava.lang.Booleanvalue, while as custom dataset property, it should be true or false. If this parameter is set to true, then setting theXLSX_COLUMN_NAMESorXLSX_COLUMN_NAMES_ARRAYwould have no effect.- See Also:
-
-
Constructor Details
-
JRXlsxQueryExecuterFactory
public JRXlsxQueryExecuterFactory()Deprecated.
-
-
Method Details
-
getBuiltinParameters
Deprecated.Description copied from interface:QueryExecuterFactoryReturns the built-in parameters associated with this query type. These parameters will be created as system-defined parameters for each report/dataset having a query of this type. The returned array should contain consecutive pairs of parameter names and parameter classes (e.g.{"Param1", String.class, "Param2", "List.class"}).- Returns:
- array of built-in parameter names and types associated with this query type
-
createQueryExecuter
public JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String, ? extends JRValueParameter> parameters) throws JRExceptionDeprecated.Description copied from interface:QueryExecuterFactoryCreates a query executer. This method is called at fill time for reports/datasets having a query supported by this factory.- Parameters:
jasperReportsContext- the JasperReportsContextdataset- the dataset containing the query, fields, etcparameters- map of value parameters (instances ofJRValueParameter) indexed by name- Returns:
- a query executer
- Throws:
JRException
-
createQueryExecuter
public JRQueryExecuter createQueryExecuter(QueryExecutionContext context, JRDataset dataset, Map<String, ? extends JRValueParameter> parameters) throws JRExceptionDeprecated.- Throws:
JRException
-
supportsQueryParameterType
Deprecated.Description copied from interface:QueryExecuterFactoryDecides whether the query executers created by this factory support a query parameter type. This check is performed for all $P{..} parameters in the query.- Parameters:
className- the value class name of the parameter- Returns:
- whether the parameter value type is supported
-
ExcelQueryExecuterFactory.