Package org.pentaho.platform.plugin.services.connections.hql

Examples of org.pentaho.platform.plugin.services.connections.hql.HQLConnection


  protected IPentahoConnection getConnection( final File hbmCfgFile, final String[] classNames ) {
    IPentahoConnection conn = null;
    try {
      conn = (HQLConnection) PentahoConnectionFactory.getConnection( "HQL", getSession(), this ); //$NON-NLS-1$
      HQLConnection hconn = (HQLConnection) conn;
      hconn.setConfigFile( hbmCfgFile );
      hconn.setClassNames( classNames );
      return conn;
    } catch ( Exception e ) {
      error( Messages.getInstance().getErrorString(
        "HQLBaseComponent.ERROR_0009_COULD_NOT_ESTABLISH_CONNECTION", getActionName() ), e ); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.plugin.services.connections.hql.HQLConnection

Copyright © 2018 www.massapicom. 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.