Examples of MDXConnection


Examples of org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection

        }
        break;
      }
    }

    MDXConnection mdxConnection =
      (MDXConnection) PentahoConnectionFactory.getConnection( IPentahoConnection.MDX_DATASOURCE, properties, session,
        null );
    // mdxConnection.setProperties( properties );
    Connection connection = mdxConnection.getConnection();
    if ( connection == null ) {
      Logger
        .error(
          "MondrianModelComponent", Messages.getInstance()
          .getErrorString( "MondrianModel.ERROR_0001_INVALID_CONNECTION",
View Full Code Here

Examples of org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection

    properties.put( "PoolNeeded", "false" );
    properties.put( RolapConnectionProperties.Locale.name(), LocaleHelper.getLocale().toString() );

    debug( "Mondrian Connection Properties: " + properties.toString() );

    MDXConnection mdxConnection =
        (MDXConnection) PentahoConnectionFactory.getConnection( IPentahoConnection.MDX_DATASOURCE, properties,
          PentahoSessionHolder.getSession(), this );

    if ( connAction != null ) {
      if ( ( connAction.getExtendedColumnNames() != ActionInputConstant.NULL_INPUT ) ) {
        mdxConnection.setUseExtendedColumnNames( connAction.getExtendedColumnNames().getBooleanValue() );
      }
    }

    return mdxConnection;
  }
View Full Code Here

Examples of org.pentaho.platform.plugin.services.connections.mondrian.MDXConnection

          return null;
        }
      }

      if ( localConnection instanceof MDXConnection ) {
        MDXConnection mdxConn = (MDXConnection) localConnection;
        if ( connAction != null ) {
          if ( ( connAction.getExtendedColumnNames() != ActionInputConstant.NULL_INPUT ) ) {
            mdxConn.setUseExtendedColumnNames( connAction.getExtendedColumnNames().getBooleanValue() );
          }
        }
      }
      return localConnection;
    } catch ( Exception e ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.