Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

oracle.express.olapi.data.full
Class ExpressDataProvider

java.lang.Object
  |
  +--oracle.olapi.data.source.DataProvider
        |
        +--oracle.express.olapi.data.full.ExpressDataProvider

public class ExpressDataProvider
extends DataProvider

Provides the actual data of an Oracle Database instance to Oracle OLAP. This concrete class extends the abstract DataProvider class. Each ExpressDataProvider is associated with an oracle.jdbc.OracleConnection and an ExpressTransactionProvider.


Constructor Summary
ExpressDataProvider(oracle.jdbc.OracleConnection connection, TransactionProvider transactionProvider)
          Creates a new ExpressDataProvider object.

 

Method Summary
 void close()
          Closes the ExpressDataProvider, releasing resources.
 SpecifiedCursorManager createCursorManager(CursorManagerSpecification cursorManagerSpecification, Source[] inputSources)
          Creates a new ExpressSpecifiedCursorManager, which is an implementation of the SpecifiedCursorManager interface for Oracle OLAP.
 SpecifiedCursorManager[] createCursorManagers(CursorManagerSpecification[] cursorManagerSpecifications, Source[][] inputLists)
          Creates an array of SpecifiedCursorManager objects.
 CursorManager[] createCursorManagers(Source[] rootSources, int[] fetchSizes, CursorInfoSpecification[] cursorInfoSpecs)
          Creates an array of ExpressDataCursorManager objects.
 SQLCursorManager[] createSQLCursorManagers(Source[] sources)
          Creates SQLCursorManager objects for the specified Source objects.
 SQLCursorManager[] createSQLCursorManagers(Source[] sources, boolean createCountColumn, java.lang.String[] generatedSQLStatements)
          Creates SQLCursorManager objects for the corresponding Source objects in the sources array.
 SQLCursorManager[] createSQLCursorManagers(Source[] sources, java.lang.String[] generatedSQLStatements)
          Creates SQLCursorManager objects for the corresponding Source objects in the sources array.
 oracle.jdbc.OracleConnection getConnection()
          Retrieves the oracle.jdbc.OracleConnection object that represents the connection between a client application and Oracle OLAP.
 MetadataProvider getDefaultMetadataProvider()
          Retrieves the MetadataProvider associated with the connection.
 void initialize()
          Initializes the ExpressDataProvider.
 boolean isOpen()
          Indicates whether the connection to Oracle OLAP is currently open.

 

Methods inherited from class oracle.olapi.data.source.DataProvider
createConstantSource, createConstantSource, createConstantSource, createConstantSource, createConstantSource, createConstantSource, createConstantSource, createConstantSource, createCursorInfoSpecification, createCursorManager, createCursorManager, createCursorManager, createCursorManagers, createCursorManagerSpecification, createListSource, createListSource, createListSource, createListSource, createListSource, createListSource, createListSource, createListSource, createParameterizedSource, createParameterizedSource, createParameterizedSource, createParameterizedSource, createRangeSource, createRangeSource, createRangeSource, createRangeSource, createSQLCursorManager, getEmptySource, getFundamentalMetadataProvider, getTransactionProvider, getVoidSource

 

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

 

Constructor Detail

ExpressDataProvider

public ExpressDataProvider(oracle.jdbc.OracleConnection connection,
TransactionProvider transactionProvider)
Creates a new ExpressDataProvider object. After creating a new ExpressDataProvider object, call its initialize method.
Parameters:
connection - An oracle.jdbc.OracleConnection object.
transactionProvider - An ExpressTransactionProvider.
Method Detail

initialize

public void initialize()
                throws java.sql.SQLException
Initializes the ExpressDataProvider. Always call this method after creating a new ExpressDataProvider.

This method throws a java.sql.SQLException if an error occurs when Oracle OLAP is preparing for its interactions with the database.

Overrides:
initialize in class DataProvider

getConnection

public oracle.jdbc.OracleConnection getConnection()
Retrieves the oracle.jdbc.OracleConnection object that represents the connection between a client application and Oracle OLAP.
Returns:
A oracle.jdbc.OracleConnection object that represents the connection between a client application and Oracle OLAP.

createCursorManagers

public final CursorManager[] createCursorManagers(Source[] rootSources,
                                                  int[] fetchSizes,
CursorInfoSpecification[] cursorInfoSpecs)
Creates an array of ExpressDataCursorManager objects. The array contains one ExpressDataCursorManager for each Source in the rootSources array. The fetchSizes and cursorInfoSpecs arrays supply a fetch size and a CursorInfoSpecification for the ExpressDataCursorManager for the corresponding Source in the rootSources array. A fetch size of -1 specifies fetching the entire result set.
Parameters:
rootSources - An array of Source objects for which you want CursorManager objects.
fetchSizes - An array of integers that specify the fetch sizes for the Cursor objects created by the corresponding CursorManager objects.
cursorInfoSpecs - An array of CursorInfoSpecification objects for the corresponding CursorManager objects.
Returns:
An array of CursorManager objects for the corresponding Source objects.
Overrides:
createCursorManagers in class DataProvider

createCursorManager

public final SpecifiedCursorManager createCursorManager(CursorManagerSpecification cursorManagerSpecification,
Source[] inputSources)
                                                 throws CursorManagerSpecificationExpiredException,
DataProviderMismatchException,
ExpressServerException,
ObjectClosedException,
TransactionalObjectInvalidException
Creates a new ExpressSpecifiedCursorManager, which is an implementation of the SpecifiedCursorManager interface for Oracle OLAP. You use an ExpressSpecifiedCursorManager to create Cursor objects, which provide access to the results of a query. If the Source that you used to create the CursorManagerSpecification has inputs, you must specify Source objects for those inputs with the inputSources parameter.

A Source that you include in the inputSources array must not have any inputs itself and it must not have any visible outputs. It must specify a single set of values. When you create a Cursor from the ExpressSpecifiedCursorManager, you use CursorInput objects to specify values for the input Source objects.

You can discover the inputs of the Source used to create the CursorManagerSpecification by doing the following:

  1. On the CursorManagerSpecification, call the getRootCursorSpecification method.
  2. On the CursorSpecification returned, call the getSource method.
  3. On the Source returned, call the getInputs method.
Parameters:
cursorManagerSpecification - A CursorManagerSpecification you created by calling the createCursorManagerSpecification method on this ExpressDataProvider.
inputSources - An array of Source objects, one for each input of the Source used to create the CursorManagerSpecification.
Returns:
A SpecifiedCursorManager.
Overrides:
createCursorManager in class DataProvider

isOpen

public final boolean isOpen()
Indicates whether the connection to Oracle OLAP is currently open. If it is closed, then no further access to the metadata or to the associated data is possible. If Oracle OLAP retrieved metadata before the connection was closed and cached it on the client, then it is still available for processing; however, the data might not be current.
Returns:
true when the connection is open; false when it is not.
Overrides:
isOpen in class DataProvider

getDefaultMetadataProvider

public MetadataProvider getDefaultMetadataProvider()
Retrieves the MetadataProvider associated with the connection.
Returns:
The MetadataProvider associated with the connection.

close

public void close()
Closes the ExpressDataProvider, releasing resources.
Overrides:
close in class DataProvider

createSQLCursorManagers

public final SQLCursorManager[] createSQLCursorManagers(Source[] sources)
Creates SQLCursorManager objects for the specified Source objects. With a SQLCursorManager, you can obtain the SQL statements that Oracle OLAP generates for its Source. The array returned by this method has a SQLCursorManager for each Source in the sources array.

All of the Source objects in the sources array must belong to the same Transaction.

Parameters:
sources - An array of Source objects for which you want to create SQLCursorManager objects.
Returns:
An array of SQLCursorManager for the specified Source objects.
Overrides:
createSQLCursorManagers in class DataProvider

createSQLCursorManagers

public final SQLCursorManager[] createSQLCursorManagers(Source[] sources,
                                                        java.lang.String[] generatedSQLStatements)
Creates SQLCursorManager objects for the corresponding Source objects in the sources array. This method replaces the String objects in the generatedSQLStatements array with String objects that contain the SQL statements that the Oracle OLAP SQL generator produces for the corresponding Source objects in the sources array. The generatedSQLStatements array must be the same size as the sources array.

All of the Source objects in the sources array must belong to the same Transaction.

Parameters:
sources - An array of Source objects for which you want SQLCursorManager objects.
generatedSQLStatments - An array of String objects that correspond to the Source objects in the sources array.
Returns:
An array of SQLCursorManager objects.

createSQLCursorManagers

public final SQLCursorManager[] createSQLCursorManagers(Source[] sources,
                                                        boolean createCountColumn,
                                                        java.lang.String[] generatedSQLStatements)
Creates SQLCursorManager objects for the corresponding Source objects in the sources array. This method replaces the String objects in the generatedSQLStatements array with String objects that contain the SQL statements that the Oracle OLAP SQL generator produces for the corresponding Source objects in the sources array. The generatedSQLStatements array must be the same size as the sources array.

All of the Source objects in the sources array must belong to the same Transaction.

Parameters:
sources - An array of Source objects for which you want SQLCursorManager objects.
createCountColumn - A boolean that specifies whether to include a count column in the generated SQL.
generatedSQLStatments - An array of String objects that correspond to the Source objects in the sources array.
Returns:
An array of SQLCursorManager objects.

createCursorManagers

public final SpecifiedCursorManager[] createCursorManagers(CursorManagerSpecification[] cursorManagerSpecifications,
Source[][] inputLists)
                                                    throws DataProviderMismatchException,
ExpressServerException,
ObjectClosedException,
TransactionalObjectInvalidException
Creates an array of SpecifiedCursorManager objects. The array contains one SpecifiedCursorManager for each CursorManagerSpecification in the cursorManagerSpecifications array. The inputLists array has any arrays of input Source objects required by the corresponding CursorManagerSpecification.
Parameters:
cursorManagerSpecifications - An array of CursorManagerSpecification objects for which you want CursorManager objects.
inputLists - An array of arrays of Source objects that are the input Source objects required by any of the specified CursorManagerSpecification objects.
Returns:
An array of SpecifiedCursorManager objects for the CursorManagerSpecification objects.
See Also:
createCursorManager(CursorManagerSpecification cursorManagerSpecification, Source[] inputSources)

Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

Copyright © 2002, 2003, Oracle. All Rights Reserved.