public class CompositeDataContext extends AbstractDataContext
Constructor and Description |
---|
CompositeDataContext(Collection<DataContext> delegates) |
CompositeDataContext(DataContext... delegates) |
Modifier and Type | Method and Description |
---|---|
DataSet |
executeQuery(Query query)
Executes a query against the DataContext.
|
String |
getDefaultSchemaName()
Gets the name of the default schema.
|
Schema |
getSchemaByNameInternal(String name)
Gets a specific schema from the non-abstract implementation.
|
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 CompositeDataContext(DataContext... delegates)
public CompositeDataContext(Collection<DataContext> delegates)
public DataSet executeQuery(Query query) throws MetaModelException
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 String getDefaultSchemaName() throws MetaModelException
AbstractDataContext
getDefaultSchemaName
in class AbstractDataContext
MetaModelException
public Schema getSchemaByNameInternal(String name) throws MetaModelException
AbstractDataContext
AbstractDataContext.refreshSchemas()
method is
called.getSchemaByNameInternal
in class AbstractDataContext
name
- the name of the schema to getMetaModelException
public String[] getSchemaNamesInternal() throws MetaModelException
AbstractDataContext
AbstractDataContext.refreshSchemas()
method is
called.getSchemaNamesInternal
in class AbstractDataContext
MetaModelException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.