Package org.saiku.datasources.connection

Examples of org.saiku.datasources.connection.ISaikuConnection


  }
 
  @Override
  protected ISaikuConnection getInternalConnection(String name, SaikuDatasource datasource) {
    //SolutionReposHelper.setSolutionRepositoryThreadVariable(PentahoSystem.get(ISolutionRepository.class, PentahoSessionHolder.getSession()));
    ISaikuConnection con;
    try {
      if (connectionPooling) {
        if (userAware && PentahoSessionHolder.getSession().getName() != null) {
          name = name + "-" + PentahoSessionHolder.getSession().getName();
        }
View Full Code Here


  }

  @Override
  protected ISaikuConnection refreshInternalConnection(String name, SaikuDatasource datasource) {
    try {
      ISaikuConnection con;
      if (connectionPooling) {
        String newname = name;
        if (userAware && PentahoSessionHolder.getSession().getName() != null) {
          newname = name + "-" + PentahoSessionHolder.getSession().getName();
        }
        con = connections.remove(newname);
      } else {
        con = getInternalConnection(name, datasource);
      }
      if (con != null) {
        con.clearCache();
      }
      con = null;
      return getInternalConnection(name, datasource);
    }
    catch (Exception e) {
View Full Code Here

    return false;
  }

  private ISaikuConnection connect(String name, SaikuDatasource datasource) {
    try {
      ISaikuConnection con = SaikuConnectionFactory.getConnection(datasource);
      if (con.initialized()) {
        return con;
      }
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here


  @Override
  protected ISaikuConnection getInternalConnection(String name, SaikuDatasource datasource) {

    ISaikuConnection con = null;
    if (isDatasourceSecurity(datasource, ISaikuConnection.SECURITY_TYPE_PASSTHROUGH_VALUE) && sessionService != null) {
      datasource = handlePassThrough(datasource);
    }

    String newName = name;
View Full Code Here

        if (username != null) {
          newName = name + "-" + username;
        }
      }

      ISaikuConnection con = connections.remove(newName);
      if (con != null) {
        con.clearCache();
      }
      return getInternalConnection(name, datasource);
    } catch (Exception e) {
      LOG.error("Error refreshing connection: " + name, e);
    }
View Full Code Here

  }


  private ISaikuConnection connect(String name, SaikuDatasource datasource) {
    try {
      ISaikuConnection con = SaikuConnectionFactory.getConnection(datasource);
      if (con.initialized()) {
        return con;
      }
    } catch (Exception e) {
      LOG.error("Error connecting: " + name, e);
    }
View Full Code Here

  @Nullable
  @Override
  protected ISaikuConnection getInternalConnection(String name, SaikuDatasource datasource)
      throws SaikuOlapException {

    ISaikuConnection con;

    if (!connections.containsKey(name)) {
      con = connect(name, datasource);
      if (con != null) {
        connections.put(name, con);
View Full Code Here

  @Nullable
  @Override
  protected ISaikuConnection refreshInternalConnection(String name, SaikuDatasource datasource) {
    try {
      ISaikuConnection con = connections.remove(name);
      if (con != null) {
        con.clearCache();
      }
      return getInternalConnection(name, datasource);
    } catch (Exception e) {
      LOG.error("Could not get internal connection", e);
    }
View Full Code Here

  private ISaikuConnection connect(String name, @Nullable SaikuDatasource datasource) throws SaikuOlapException {
    if (datasource != null) {


      try {
        ISaikuConnection con = SaikuConnectionFactory.getConnection(datasource);
        if (con.initialized()) {
          return con;
        }
      } catch (Exception e) {
        LOG.error("Could not get connection", e);
      }
View Full Code Here

  }

  @Override
  protected ISaikuConnection getInternalConnection(String name, SaikuDatasource datasource) {
    SolutionReposHelper.setSolutionRepositoryThreadVariable(PentahoSystem.get(ISolutionRepository.class, PentahoSessionHolder.getSession()));
    ISaikuConnection con;
    try {
      if (connectionPooling) {
        if (userAware && PentahoSessionHolder.getSession().getName() != null) {
          name = name + "-" + PentahoSessionHolder.getSession().getName();
        }
View Full Code Here

TOP

Related Classes of org.saiku.datasources.connection.ISaikuConnection

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.