Preparing an Application for a Builder

Ensure that the following objects exist before you add a CalcBuilder object or a QueryBuilder object to an application:

  1. Create a BISession object to handle the running of CalcBuilder or QueryBuilder in the desired deployment environment.

  2. Create a Connection object for each data store that the application requires. Typically an application requires a Connection to data and metadata and a Connection to the BI Beans Catalog.

  3. Create a MetadataManager object to manage the connections to data stores.

    1. To associate the MetadataManager with its connections, invoke its setConnection method for each Connection object.

    2. Invoke the attach method of the MetadataManager once to attach all the data stores that are represented by its connections.

  4. Prepare a data source to provide access to information contained in an OLAP query.

    To establish a data source: create a QueryManager object and use its factory method to create an empty Query object. The MetadataManager property of the QueryManager object must also be set to reference the appropriate MetadataManager.

Connecting to Data Stores