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) |
addConverter, executeCountQuery, executePrimaryKeyLookupQuery, executeQuery, getDefaultSchemaName, getMainSchemaInternal, getSchemaByNameInternal, getSchemaNamesInternal, isMainSchemaTable, materializeFromItem, materializeMainSchemaTable, materializeMainSchemaTable, materializeTablecompileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, 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)
materializeMainSchemaTable in class QueryPostprocessDataContextCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.