org.pentaho.platform.plugin.services.connections.mondrian
Class MDXConnection

java.lang.Object
  extended by org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection
All Implemented Interfaces:
IPentahoLoggingConnection

public class MDXConnection
extends Object
implements IPentahoLoggingConnection

Author:
wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static String CONNECTION_STRING_KEY
          Defines the XML element in the component-definition that holds the mondrian-specific MDX Connection string.
 
Constructor Summary
MDXConnection()
           
MDXConnection(String connectStr, ILogger logger)
           
MDXConnection(String driver, String provider, String userName, String password)
          Deprecated.  
 
Method Summary
 void clearWarnings()
           
 void close()
           
 boolean connect(Properties props)
           
 IPentahoResultSet executeQuery(String query)
           
 Connection getConnection()
           
 String getDatasourceType()
          return datasource type MDX
 String getLastQuery()
           
 IPentahoResultSet getResultSet()
           
 boolean initialized()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
 IPentahoResultSet prepareAndExecuteQuery(String query, List parameters)
           
 boolean preparedQueriesSupported()
           
 void setFetchSize(int fetchSize)
           
 void setLogger(ILogger logger)
           
 void setMaxRows(int maxRows)
           
 void setProperties(Properties props)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_STRING_KEY

public static final String CONNECTION_STRING_KEY
Defines the XML element in the component-definition that holds the mondrian-specific MDX Connection string.

See Also:
Constant Field Values
Constructor Detail

MDXConnection

public MDXConnection()

MDXConnection

@Deprecated
public MDXConnection(String driver,
                                String provider,
                                String userName,
                                String password)
Deprecated. 

Parameters:
driver - - The name of the driver or the connection string
provider - - the provider for MDX usally "mondrian"
userName - - User to connect to the datasource with
password - - Password for the user
See Also:
MDXConnection(Properties props, ILogger logger)

MDXConnection

public MDXConnection(String connectStr,
                     ILogger logger)
Method Detail

setLogger

public void setLogger(ILogger logger)
Specified by:
setLogger in interface IPentahoLoggingConnection

setProperties

public void setProperties(Properties props)

initialized

public boolean initialized()

prepareAndExecuteQuery

public IPentahoResultSet prepareAndExecuteQuery(String query,
                                                List parameters)
                                         throws Exception
Throws:
Exception

preparedQueriesSupported

public boolean preparedQueriesSupported()

close

public void close()

getLastQuery

public String getLastQuery()

executeQuery

public IPentahoResultSet executeQuery(String query)

isClosed

public boolean isClosed()

isReadOnly

public boolean isReadOnly()

clearWarnings

public void clearWarnings()

getResultSet

public IPentahoResultSet getResultSet()

connect

public boolean connect(Properties props)

setMaxRows

public void setMaxRows(int maxRows)

setFetchSize

public void setFetchSize(int fetchSize)

getConnection

public Connection getConnection()

getDatasourceType

public String getDatasourceType()
return datasource type MDX

Returns:
datasource type