|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdk.eobjects.metamodel.DataContext
public class DataContext
A DataContext represents the central entry point for interactions with datastores. The DataContext contains of the structure of data (in the form of schemas) and interactions (in the form of queries) with data.
| Constructor Summary | |
|---|---|
DataContext(IDataContextStrategy strategy)
Creates a DataContext based on a specified IDataContextStrategy. |
|
| Method Summary | |
|---|---|
DataSet |
executeQuery(Query query)
Executes a query against the data context. |
Schema |
getDefaultSchema()
|
Schema |
getSchemaByName(java.lang.String name)
Gets a schema by a specified name |
java.lang.String[] |
getSchemaNames()
|
Schema[] |
getSchemas()
|
DataContext |
refreshSchemas()
Enforces a refresh of the schemas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataContext(IDataContextStrategy strategy)
strategy - | Method Detail |
|---|
public DataContext refreshSchemas()
public Schema[] getSchemas()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
public java.lang.String[] getSchemaNames()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
public Schema getDefaultSchema()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
public Schema getSchemaByName(java.lang.String name)
throws MetaModelException
name - the name of the desired schema
MetaModelException - if an error occurs retrieving the schema model
public DataSet executeQuery(Query query)
throws MetaModelException
query - the query object to execute
MetaModelException - if the specified query does not make sense or cannot be
executed because of restraints on the type of datastore.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||