|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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.
| Method Summary | |
|---|---|
DataSet |
executeQuery(Query query)
Executes a query against the DataContext. |
Column |
getColumnByQualifiedLabel(String columnName)
Finds a column in the DataContext based on a fully qualified column label. |
Schema |
getDefaultSchema()
Gets the default schema of this DataContext. |
Schema |
getSchemaByName(String name)
Gets a schema by a specified name. |
String[] |
getSchemaNames()
Gets the names of all schemas within this DataContext. |
Schema[] |
getSchemas()
Gets all schemas within this DataContext. |
Table |
getTableByQualifiedLabel(String tableName)
Finds a table in the DataContext based on a fully qualified table label. |
InitFromBuilder |
query()
Starts building a query using the query builder API. |
DataContext |
refreshSchemas()
Enforces a refresh of the schemas. |
| Method Detail |
|---|
DataContext refreshSchemas()
Schema[] getSchemas()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
String[] getSchemaNames()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
Schema getDefaultSchema()
throws MetaModelException
MetaModelException - if an error occurs retrieving the schema model
Schema getSchemaByName(String name)
throws MetaModelException
name - the name of the desired schema
MetaModelException - if an error occurs retrieving the schema modelInitFromBuilder query()
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.Column getColumnByQualifiedLabel(String columnName)
columnName -
Table getTableByQualifiedLabel(String tableName)
tableName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||