Class MDXConnection
java.lang.Object
org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection
- All Implemented Interfaces:
org.pentaho.commons.connection.IPentahoConnection,org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
public class MDXConnection
extends Object
implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
- Author:
- wseyler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefines the XML element in the component-definition that holds the mondrian-specific MDX Connection string.static final Stringprotected mondrian.olap.ConnectionFields inherited from interface org.pentaho.commons.connection.IPentahoConnection
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 Summary
ConstructorsConstructorDescriptionMDXConnection(String driver, String provider, String userName, String password) Deprecated.MDXConnection(String connectStr, org.pentaho.platform.api.engine.ILogger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()booleanconnect(Properties props) org.pentaho.commons.connection.IPentahoResultSetexecuteQuery(String query) mondrian.olap.Connectionreturn datasource type MDXorg.pentaho.commons.connection.IPentahoResultSetprotected voidprotected voidprotected voidinit(Properties properties) protected voidinit(mondrian.olap.Util.PropertyList properties) booleanbooleanisClosed()booleanprotected voidmapPlatformRolesToMondrianRoles(mondrian.olap.Util.PropertyList properties) static voidmapPlatformRolesToMondrianRolesHelper(mondrian.olap.Util.PropertyList properties) org.pentaho.commons.connection.IPentahoResultSetprepareAndExecuteQuery(String query, List parameters) booleanvoidsetFetchSize(int fetchSize) voidsetLogger(org.pentaho.platform.api.engine.ILogger logger) voidsetMaxRows(int maxRows) voidsetProperties(Properties props) voidsetRole(mondrian.olap.Role customRole) voidsetUseExtendedColumnNames(boolean useExtendedColumnNames)
-
Field Details
-
CONNECTION_STRING_KEY
Defines the XML element in the component-definition that holds the mondrian-specific MDX Connection string.- See Also:
-
MDX_CONNECTION_MAPPER_KEY
- See Also:
-
nativeConnection
protected mondrian.olap.Connection nativeConnection
-
-
Constructor Details
-
MDXConnection
public MDXConnection() -
MDXConnection
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
-
-
Method Details
-
setLogger
public void setLogger(org.pentaho.platform.api.engine.ILogger logger) - Specified by:
setLoggerin interfaceorg.pentaho.platform.engine.core.system.IPentahoLoggingConnection
-
setProperties
- Specified by:
setPropertiesin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
init
-
init
-
init
protected void init(String driver, String provider, String userName, String password, Properties props) -
mapPlatformRolesToMondrianRoles
protected void mapPlatformRolesToMondrianRoles(mondrian.olap.Util.PropertyList properties) throws org.pentaho.platform.api.engine.PentahoAccessControlException - Throws:
org.pentaho.platform.api.engine.PentahoAccessControlException
-
mapPlatformRolesToMondrianRolesHelper
public static void mapPlatformRolesToMondrianRolesHelper(mondrian.olap.Util.PropertyList properties) throws org.pentaho.platform.api.engine.PentahoAccessControlException - Throws:
org.pentaho.platform.api.engine.PentahoAccessControlException
-
init
protected void init(mondrian.olap.Util.PropertyList properties) -
initialized
public boolean initialized()- Specified by:
initializedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
prepareAndExecuteQuery
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception - Specified by:
prepareAndExecuteQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection- Throws:
Exception
-
preparedQueriesSupported
public boolean preparedQueriesSupported()- Specified by:
preparedQueriesSupportedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
close
public void close()- Specified by:
closein interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getLastQuery
- Specified by:
getLastQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
executeQuery
- Specified by:
executeQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()- Specified by:
getResultSetin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
connect
- Specified by:
connectin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setMaxRows
public void setMaxRows(int maxRows) - Specified by:
setMaxRowsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setFetchSize
public void setFetchSize(int fetchSize) - Specified by:
setFetchSizein interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getConnection
public mondrian.olap.Connection getConnection() -
getDatasourceType
return datasource type MDX- Specified by:
getDatasourceTypein interfaceorg.pentaho.commons.connection.IPentahoConnection- Returns:
- datasource type
-
setUseExtendedColumnNames
public void setUseExtendedColumnNames(boolean useExtendedColumnNames) -
setRole
public void setRole(mondrian.olap.Role customRole)
-