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, refreshSchemas
public OpenOfficeDataContext(File dbFile) throws MetaModelException
MetaModelException
public DataSet executeQuery(Query query) throws MetaModelException
DataContext
executeQuery
in interface DataContext
query
- 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 Closeable
close
in interface AutoCloseable
public Connection getConnection()
protected List<String> getSchemaNamesInternal()
AbstractDataContext
AbstractDataContext.refreshSchemas()
method is called.getSchemaNamesInternal
in class AbstractDataContext
protected String getDefaultSchemaName()
AbstractDataContext
getDefaultSchemaName
in class AbstractDataContext
protected Schema getSchemaByNameInternal(String name)
AbstractDataContext
AbstractDataContext.refreshSchemas()
method is called.getSchemaByNameInternal
in class AbstractDataContext
name
- the name of the schema to getCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.