dk.eobjects.metamodel.DataContext
The DataContext class represents the central point of entry for a datastore in MetaModel. From the DataContext class you get access to the structure (in the form of Schemas) and to the interaction (in the form of Queries) with the datastore. Typically you would access the structure first, in order to construct a Query object with references to the structural parts that you want to query.
Obtaining a DataContext
As of MetaModel 1.1 the way to obtain a DataContext have been changed from the original "instantiation through constructors" way to a factory-based approach. You can use the dk.eobjects.metamodel.DataContextFactory class to create and initialize the DataContext objects for you now.
Important methods
- Schema[] getSchemas();
- Schema getDefaultSchema();
- DataSet executeQuery(Query query);
