public class OpenOfficeDataContext extends AbstractDataContext implements Closeable
| Constructor and Description |
|---|
OpenOfficeDataContext(File dbFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataSet |
executeQuery(Query query)
Executes a query against the DataContext.
|
Connection |
getConnection() |
protected String |
getDefaultSchemaName()
Gets the name of the default schema.
|
protected Schema |
getSchemaByNameInternal(String name)
Gets a specific schema from the non-abstract implementation.
|
protected List<String> |
getSchemaNamesInternal()
Gets schema names from the non-abstract implementation.
|
compileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, onSchemaCacheRefreshed, parseQuery, query, refreshSchemaspublic OpenOfficeDataContext(File dbFile) throws MetaModelException
MetaModelExceptionpublic DataSet executeQuery(Query query) throws MetaModelException
DataContextexecuteQuery in interface DataContextquery - the query object to executeDataSet produced from executing the queryMetaModelException - if the specified query does not make sense or cannot be
executed because of restraints on the type of datastore.public void close()
close in interface Closeableclose in interface AutoCloseablepublic Connection getConnection()
protected List<String> getSchemaNamesInternal()
AbstractDataContextAbstractDataContext.refreshSchemas() method is called.getSchemaNamesInternal in class AbstractDataContextprotected String getDefaultSchemaName()
AbstractDataContextgetDefaultSchemaName in class AbstractDataContextprotected Schema getSchemaByNameInternal(String name)
AbstractDataContextAbstractDataContext.refreshSchemas() method is called.getSchemaByNameInternal in class AbstractDataContextname - the name of the schema to getCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.