dk.eobjects.metamodel
Class CompositeDataContextStrategy

Package class diagram package CompositeDataContextStrategy
java.lang.Object
  extended by dk.eobjects.metamodel.CompositeDataContextStrategy
All Implemented Interfaces:
IDataContextStrategy

public class CompositeDataContextStrategy
extends java.lang.Object
implements IDataContextStrategy


Constructor Summary
CompositeDataContextStrategy(java.util.Collection<DataContext> delegates)
           
CompositeDataContextStrategy(DataContext... delegates)
           
 
Method Summary
 DataSet executeQuery(Query query)
          Executes a query.
 java.lang.String getDefaultSchemaName()
           
 Schema getSchemaByName(java.lang.String name)
           
 java.lang.String[] getSchemaNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeDataContextStrategy

public CompositeDataContextStrategy(DataContext... delegates)

CompositeDataContextStrategy

public CompositeDataContextStrategy(java.util.Collection<DataContext> delegates)
Method Detail

executeQuery

public DataSet executeQuery(Query query)
                     throws MetaModelException
Description copied from interface: IDataContextStrategy
Executes a query.

Specified by:
executeQuery in interface IDataContextStrategy
Returns:
a dataset representing the result of the query.
Throws:
MetaModelException

getDefaultSchemaName

public java.lang.String getDefaultSchemaName()
                                      throws MetaModelException
Specified by:
getDefaultSchemaName in interface IDataContextStrategy
Returns:
the name of the default schema provided by this strategy or null if none is present or possible to deterministically tell.
Throws:
MetaModelException

getSchemaByName

public Schema getSchemaByName(java.lang.String name)
                       throws MetaModelException
Specified by:
getSchemaByName in interface IDataContextStrategy
Returns:
the schema with the specified name, or null if such a schema is not available
Throws:
MetaModelException

getSchemaNames

public java.lang.String[] getSchemaNames()
                                  throws MetaModelException
Specified by:
getSchemaNames in interface IDataContextStrategy
Returns:
an array of schema names within this datastore.
Throws:
MetaModelException


Copyright © 2007-2010. All Rights Reserved.