org.olap4j
Interface OlapStatement

All Superinterfaces:
OlapWrapper, java.sql.Statement, java.sql.Wrapper
All Known Subinterfaces:
PreparedOlapStatement

public interface OlapStatement
extends java.sql.Statement, OlapWrapper

Object used for statically executing an MDX statement and returning a CellSet.

An OlapStatement is generally created using OlapConnection.createStatement().

Since:
Aug 22, 2006
Version:
$Id: OlapStatement.java 229 2009-05-08 19:11:29Z jhyde $
Author:
jhyde
See Also:
PreparedOlapStatement

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Method Summary
 CellSet executeOlapQuery(SelectNode selectNode)
          Executes an OLAP statement expressed as a parse tree.
 CellSet executeOlapQuery(java.lang.String mdx)
          Executes an OLAP statement.
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface org.olap4j.OlapWrapper
isWrapperFor, unwrap
 

Method Detail

executeOlapQuery

CellSet executeOlapQuery(java.lang.String mdx)
                         throws OlapException
Executes an OLAP statement.

Parameters:
mdx - MDX SELECT statement
Returns:
Cell set
Throws:
OlapException - if a database access error occurs, this method is called on a closed OlapStatement, the query times out (see Statement.setQueryTimeout(int)) or another thread cancels the statement (see Statement.cancel())

executeOlapQuery

CellSet executeOlapQuery(SelectNode selectNode)
                         throws OlapException
Executes an OLAP statement expressed as a parse tree.

Validates the parse tree before executing it.

Parameters:
selectNode - Parse tree of MDX SELECT statement
Returns:
Cell set
Throws:
OlapException - if a database access error occurs, this method is called on a closed OlapStatement, the query times out (see Statement.setQueryTimeout(int)) or another thread cancels the statement (see Statement.cancel())

SourceForge.net_Logo