public class XmlSaxDataContext extends QueryPostprocessDataContext
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_NAME_ROW_ID |
INFORMATION_SCHEMA_NAME| Constructor and Description |
|---|
XmlSaxDataContext(File file,
XmlSaxTableDef... tableDefs) |
XmlSaxDataContext(Ref<InputSource> inputSourceRef,
XmlSaxTableDef... tableDefs)
Constructs an XML DataContext based on SAX parsing.
|
XmlSaxDataContext(Resource resource,
XmlSaxTableDef... tableDefs) |
| Modifier and Type | Method and Description |
|---|---|
protected Schema |
getMainSchema() |
protected String |
getMainSchemaName() |
protected DataSet |
materializeMainSchemaTable(Table table,
Column[] columns,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
addConverter, executeCountQuery, executePrimaryKeyLookupQuery, executeQuery, getDefaultSchemaName, getMainSchemaInternal, getSchemaByNameInternal, getSchemaNamesInternal, isMainSchemaTable, isScalarFunctionMaterialized, materializeFromItem, materializeMainSchemaTable, materializeMainSchemaTable, materializeMainSchemaTable, materializeTable, materializeTablecompileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, onSchemaCacheRefreshed, parseQuery, query, refreshSchemaspublic static final String COLUMN_NAME_ROW_ID
public XmlSaxDataContext(Ref<InputSource> inputSourceRef, XmlSaxTableDef... tableDefs)
inputSourceRef - a factory reference for the input source to read the XML from.
The ref will be repeatedly called for each access to the file!tableDefs - an array of table definitions, which provide instructions as
to the xpaths to apply to the document.XmlSaxTableDefpublic XmlSaxDataContext(Resource resource, XmlSaxTableDef... tableDefs)
public XmlSaxDataContext(File file, XmlSaxTableDef... tableDefs)
protected Schema getMainSchema() throws MetaModelException
getMainSchema in class QueryPostprocessDataContextMetaModelExceptionprotected String getMainSchemaName() throws MetaModelException
getMainSchemaName in class QueryPostprocessDataContextMetaModelExceptionprotected DataSet materializeMainSchemaTable(Table table, Column[] columns, int maxRows)
QueryPostprocessDataContextmaterializeMainSchemaTable in class QueryPostprocessDataContexttable - the table to querycolumns - the columns of the table to querymaxRows - the maximum amount of rows needed or -1 if all rows are
wanted.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.