Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.bicontext
Interface ManagerFactory


public interface ManagerFactory

The ManagerFactory creates and maintains an InitialPersistenceManager, as well as a pool of QueryManager and MetadataManager objects for a particular user session. You can get the ManagerFactory for your application by calling the getManagerFactory of the BISession object.

See Also:
BISession.getManagerFactory()

Field Summary
static int METADATA_MANAGER
          Manager type: MetadataManager
static int PERSISTENCE_MANAGER
          Manager type: InitialPersistenceManager.
static int QUERY_MANAGER
          Manager type: QueryManager

 

Method Summary
 java.lang.Object lookupManager(int managerType, java.lang.String name, boolean useSharedPool)
          Returns a named manager.

 

Field Detail

PERSISTENCE_MANAGER

public static final int PERSISTENCE_MANAGER
Manager type: InitialPersistenceManager.

METADATA_MANAGER

public static final int METADATA_MANAGER
Manager type: MetadataManager

QUERY_MANAGER

public static final int QUERY_MANAGER
Manager type: QueryManager
Method Detail

lookupManager

public java.lang.Object lookupManager(int managerType,
                                      java.lang.String name,
                                      boolean useSharedPool)
                               throws java.lang.Exception
Returns a named manager. If you pass true as the useSharedPool parameter, then this ManagerFactory first looks in the pool of managers of the specified type for the named manager. If it does not find the manager, then the ManagerFactory instantiates the manager and adds it to the pool.

If you pass false as the useSharedPool parameter, then this ManagerFactory does not look in the pool. Instead, it creates a new instance, and it does not add the instance to the pool.

Parameters:
managerType - A constant that represents the type of manager that you want. Valid values are listed in the See Also section.
name - The name of the manager object.
useSharedPool - true to use an existing manager, if one exists, false to create a new instance, without adding it to the pool of available managers.
Returns:
An instance of the specified type of manager, which is associated with the specified name.
Throws:
java.lang.Exception - if an error occurred while loading the manager object.
See Also:
PERSISTENCE_MANAGER, METADATA_MANAGER, QUERY_MANAGER

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.