org.teiid.test.client
Interface QueryReader

All Known Implementing Classes:
XMLQueryReader

public interface QueryReader

The QueryReader is responsible for providing a set queries for a given querySetID. The querySetID identifies a set of queries to executed. The Map structure is as follows: Map: Key - Value QueryIdentifier SQL Query Where: - QueryIdentifier uniquely identifies a sql query in the set. SQL Query is the query to be executed.

Author:
vanhalbert

Field Summary
static java.lang.String PROP_QUERY_FILES_DIR_LOC
          PROP_QUERY_FILES_DIR_LOC indicates the location to find the query files
static java.lang.String PROP_QUERY_FILES_ROOT_DIR
          PROP_QUERY_FILES_ROOT_DIR, if specified, indicates the root directory to be prepended to the PROP_QUERY_FILES_DIR_LOC to create the full directory to find the query files.
 
Method Summary
 java.util.List<QueryTest> getQueries(java.lang.String querySetID)
          Return a List containing QueryTest
 java.util.Collection<java.lang.String> getQuerySetIDs()
          Return the querySetIDs that identifies all the query sets that are available to execute during this test.
 

Field Detail

PROP_QUERY_FILES_DIR_LOC

static final java.lang.String PROP_QUERY_FILES_DIR_LOC
PROP_QUERY_FILES_DIR_LOC indicates the location to find the query files

See Also:
Constant Field Values

PROP_QUERY_FILES_ROOT_DIR

static final java.lang.String PROP_QUERY_FILES_ROOT_DIR
PROP_QUERY_FILES_ROOT_DIR, if specified, indicates the root directory to be prepended to the PROP_QUERY_FILES_DIR_LOC to create the full directory to find the query files. This property is normally used during the nightly builds so that the query files will coming from other projects.

See Also:
Constant Field Values
Method Detail

getQuerySetIDs

java.util.Collection<java.lang.String> getQuerySetIDs()
Return the querySetIDs that identifies all the query sets that are available to execute during this test.

Returns:

getQueries

java.util.List<QueryTest> getQueries(java.lang.String querySetID)
                                     throws QueryTestFailedException
Return a List containing QueryTest

Returns:
List
Throws:
QueryTestFailedException
Since:


Copyright © 2011. All Rights Reserved.