public class MDXConnection extends Object implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_STRING_KEY
Defines the XML element in the component-definition that holds the mondrian-specific MDX Connection string.
|
static String |
MDX_CONNECTION_MAPPER_KEY |
CLASSNAME_KEY, CONNECTION, DRIVER_KEY, HQL_DATASOURCE, JNDI_NAME_KEY, KEYS, LOCATION_KEY, MDX_DATASOURCE, MDX_OLAP4J_DATASOURCE, NONE_DATASOURCE, PASSWORD_KEY, PROVIDER, QUERY_KEY, SQL_DATASOURCE, USERNAME_KEY, XML_DATASOURCE| Constructor and Description |
|---|
MDXConnection() |
MDXConnection(String connectStr,
org.pentaho.platform.api.engine.ILogger logger) |
MDXConnection(String driver,
String provider,
String userName,
String password)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearWarnings() |
void |
close() |
boolean |
connect(Properties props) |
org.pentaho.commons.connection.IPentahoResultSet |
executeQuery(String query) |
mondrian.olap.Connection |
getConnection() |
String |
getDatasourceType()
return datasource type MDX
|
String |
getLastQuery() |
org.pentaho.commons.connection.IPentahoResultSet |
getResultSet() |
boolean |
initialized() |
boolean |
isClosed() |
boolean |
isReadOnly() |
static void |
mapPlatformRolesToMondrianRolesHelper(mondrian.olap.Util.PropertyList properties) |
org.pentaho.commons.connection.IPentahoResultSet |
prepareAndExecuteQuery(String query,
List parameters) |
boolean |
preparedQueriesSupported() |
void |
setFetchSize(int fetchSize) |
void |
setLogger(org.pentaho.platform.api.engine.ILogger logger) |
void |
setMaxRows(int maxRows) |
void |
setProperties(Properties props) |
void |
setRole(mondrian.olap.Role customRole) |
void |
setUseExtendedColumnNames(boolean useExtendedColumnNames) |
public static final String CONNECTION_STRING_KEY
public static final String MDX_CONNECTION_MAPPER_KEY
public MDXConnection()
@Deprecated public MDXConnection(String driver, String provider, String userName, String password)
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 userMDXConnection(Properties props, ILogger logger)public MDXConnection(String connectStr, org.pentaho.platform.api.engine.ILogger logger)
public void setLogger(org.pentaho.platform.api.engine.ILogger logger)
setLogger in interface org.pentaho.platform.engine.core.system.IPentahoLoggingConnectionpublic void setProperties(Properties props)
setProperties in interface org.pentaho.commons.connection.IPentahoConnectionpublic static void mapPlatformRolesToMondrianRolesHelper(mondrian.olap.Util.PropertyList properties)
throws org.pentaho.platform.api.engine.PentahoAccessControlException
org.pentaho.platform.api.engine.PentahoAccessControlExceptionpublic boolean initialized()
initialized in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
prepareAndExecuteQuery in interface org.pentaho.commons.connection.IPentahoConnectionExceptionpublic boolean preparedQueriesSupported()
preparedQueriesSupported in interface org.pentaho.commons.connection.IPentahoConnectionpublic void close()
close in interface org.pentaho.commons.connection.IPentahoConnectionpublic String getLastQuery()
getLastQuery in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query)
executeQuery in interface org.pentaho.commons.connection.IPentahoConnectionpublic boolean isClosed()
isClosed in interface org.pentaho.commons.connection.IPentahoConnectionpublic boolean isReadOnly()
isReadOnly in interface org.pentaho.commons.connection.IPentahoConnectionpublic void clearWarnings()
clearWarnings in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet in interface org.pentaho.commons.connection.IPentahoConnectionpublic boolean connect(Properties props)
connect in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setMaxRows(int maxRows)
setMaxRows in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setFetchSize(int fetchSize)
setFetchSize in interface org.pentaho.commons.connection.IPentahoConnectionpublic mondrian.olap.Connection getConnection()
public String getDatasourceType()
getDatasourceType in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setUseExtendedColumnNames(boolean useExtendedColumnNames)
public void setRole(mondrian.olap.Role customRole)