public class MDXConnection extends Object implements 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 |
protected mondrian.olap.Connection |
nativeConnection |
CLASSNAME_KEY, CONNECTION, CONNECTION_NAME, 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,
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() |
protected void |
init(Properties properties) |
protected void |
init(String connectStr) |
protected void |
init(String driver,
String provider,
String userName,
String password,
Properties props) |
protected void |
init(mondrian.olap.Util.PropertyList properties) |
boolean |
initialized() |
boolean |
isClosed() |
boolean |
isReadOnly() |
protected void |
mapPlatformRolesToMondrianRoles(mondrian.olap.Util.PropertyList properties) |
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(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
protected mondrian.olap.Connection nativeConnection
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 void setLogger(ILogger logger)
setLogger
in interface IPentahoLoggingConnection
public void setProperties(Properties props)
setProperties
in interface org.pentaho.commons.connection.IPentahoConnection
protected void init(String connectStr)
protected void init(Properties properties)
protected void init(String driver, String provider, String userName, String password, Properties props)
protected void mapPlatformRolesToMondrianRoles(mondrian.olap.Util.PropertyList properties) throws PentahoAccessControlException
PentahoAccessControlException
public static void mapPlatformRolesToMondrianRolesHelper(mondrian.olap.Util.PropertyList properties) throws PentahoAccessControlException
PentahoAccessControlException
protected void init(mondrian.olap.Util.PropertyList properties)
public boolean initialized()
initialized
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
prepareAndExecuteQuery
in interface org.pentaho.commons.connection.IPentahoConnection
Exception
public boolean preparedQueriesSupported()
preparedQueriesSupported
in interface org.pentaho.commons.connection.IPentahoConnection
public void close()
close
in interface org.pentaho.commons.connection.IPentahoConnection
public String getLastQuery()
getLastQuery
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query)
executeQuery
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean isClosed()
isClosed
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean isReadOnly()
isReadOnly
in interface org.pentaho.commons.connection.IPentahoConnection
public void clearWarnings()
clearWarnings
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean connect(Properties props)
connect
in interface org.pentaho.commons.connection.IPentahoConnection
public void setMaxRows(int maxRows)
setMaxRows
in interface org.pentaho.commons.connection.IPentahoConnection
public void setFetchSize(int fetchSize)
setFetchSize
in interface org.pentaho.commons.connection.IPentahoConnection
public mondrian.olap.Connection getConnection()
public String getDatasourceType()
getDatasourceType
in interface org.pentaho.commons.connection.IPentahoConnection
public void setUseExtendedColumnNames(boolean useExtendedColumnNames)
public void setRole(mondrian.olap.Role customRole)
Copyright © 2017 Hitachi Vantara. All rights reserved.