org.pentaho.platform.plugin.services.connections.mondrian
Class MDXConnection
java.lang.Object
org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection
- All Implemented Interfaces:
- IPentahoLoggingConnection
public class MDXConnection
- extends Object
- implements IPentahoLoggingConnection
- Author:
- wseyler
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
MDX_CONNECTION_MAPPER_KEY
public static final String MDX_CONNECTION_MAPPER_KEY
- See Also:
- Constant Field Values
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 stringprovider
- - the provider for MDX usally "mondrian"userName
- - User to connect to the datasource withpassword
- - Password for the user- See Also:
MDXConnection(Properties props, ILogger logger)
MDXConnection
public MDXConnection(String connectStr,
ILogger logger)
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
setUseExtendedColumnNames
public void setUseExtendedColumnNames(boolean useExtendedColumnNames)
setRole
public void setRole(Role customRole)