Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap4j
Class Olap4jResolver

java.lang.Object
  extended by com.citra.pivot.olap.mdx.MDXResolver
      extended by com.citra.pivot.olap4j.Olap4jResolver

public class Olap4jResolver
extends MDXResolver

Olap4jResolver is used for executing queries using the olap4j framework.


Constructor Summary
Olap4jResolver()
          Constructs an Olap4jResolver.
 
Method Summary
 String convertToMDX(OlapSelection selection, Connection connection, MDXDataSource source)
          Executes a StringSelection and returns the result as an TabularSet.
 OlapCellSet executeMDXImpl(String mdx, OlapSelection selection, Connection connection, MDXDataSource source)
          Executes an MDX statement and returns the result as an OlapCellSet.
 OlapSet executeSet(SetSelection selection, Connection connection, MDXDataSource source)
          Executes a SetSelection and returns the result as an OlapSet.
 TabularSet executeTabular(TabularSelection selection, Connection connection, MDXDataSource source)
          Executes a TabularSelection and returns the result as a TabularSet.
 
Methods inherited from class com.citra.pivot.olap.mdx.MDXResolver
executeAxis, executeCustom, executeLogical, executeMDX, executeMember, executeQuery, executeString, executeTuple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Olap4jResolver

public Olap4jResolver()
Constructs an Olap4jResolver.

Method Detail

convertToMDX

public String convertToMDX(OlapSelection selection,
                           Connection connection,
                           MDXDataSource source)
                    throws DataSourceException
Executes a StringSelection and returns the result as an TabularSet.

Overrides:
convertToMDX in class MDXResolver
Parameters:
selection - the tabular selection
connection - the underlying connection to use
source - the MDXDataSource used
Returns:
the result from executing the selection
Throws:
DataSourceException

executeMDXImpl

public OlapCellSet executeMDXImpl(String mdx,
                                  OlapSelection selection,
                                  Connection connection,
                                  MDXDataSource source)
                           throws DataSourceException
Executes an MDX statement and returns the result as an OlapCellSet. This method should be implemented from MDXResolver subclasses.

Specified by:
executeMDXImpl in class MDXResolver
Parameters:
mdx - the MDX statement to execute
selection - the selection that was converted to the MDX string
connection - the underlying connection to use
source - the MDXDataSource used
Returns:
the result from executing the selection
Throws:
DataSourceException

executeSet

public OlapSet executeSet(SetSelection selection,
                          Connection connection,
                          MDXDataSource source)
                   throws DataSourceException
Executes a SetSelection and returns the result as an OlapSet.

Overrides:
executeSet in class MDXResolver
Parameters:
selection - the set selection
connection - the underlying connection to use
source - the MDXDataSource used
Returns:
the result from executing the selection
Throws:
DataSourceException

executeTabular

public TabularSet executeTabular(TabularSelection selection,
                                 Connection connection,
                                 MDXDataSource source)
                          throws DataSourceException
Executes a TabularSelection and returns the result as a TabularSet.

Overrides:
executeTabular in class MDXResolver
Parameters:
selection - the tabular selection
connection - the underlying connection to use
source - the MDXDataSource used
Returns:
the result from executing the selection
Throws:
DataSourceException

Copyright © 2011 Citra Technologies. All Rights Reserved.