# com.bea.query
QueryManager Class

public class QueryManager
extends `Object`

QueryManager is used to submit and return results from the query portion of the DRE. This is done using the QueryRequest and QueryResult classes.

The default constructor should be used with caution - it hard codes hostname and port values to the default for the 8.1 beta installation.

Hierarchy
  `Object`
  `QueryManager`

## Constructor Summary

QueryManager() Construct a QueryManager with some default parameters.
QueryManager(`String` hostName, int aciPort, int servicePort) Construct a AciServer object to represent the DRE.

## Method Summary

`public `List`` | `doQuery`(`QueryRequest` queryRequest) Send the query request to the DRE and parse the response.
`public `Vector`` | `getDatabaseNames`() Read the list of databases from the DRE's configuration and populate a Vector with them.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### QueryManager

    public QueryManager()

  Construct a QueryManager with some default parameters. These defaults are the same as WLP 8.1 shipped with. The defaults are:
  - dreHostName - "localhost"
  - dreACIPort - 9002
  - dreServicePort - 40001

### QueryManager

    public QueryManager(String hostName,
                        int aciPort,
                        int servicePort)

  Construct a AciServer object to represent the DRE.

## Method Detail

### doQuery(QueryRequest) Method

    public List doQuery(QueryRequest queryRequest)

Send the query request to the DRE and parse the response. The response is a List of QueryResponses.

#### Parameters

queryRequest
  - the query to run.

#### Returns

an List of QueryResponses

Related Topics

``QueryRequest``
QueryResponse

### getDatabaseNames() Method

    public Vector getDatabaseNames()

Read the list of databases from the DRE's configuration and populate a Vector with them.

#### Returns

the Vector of database names. Each element is a String.