Package hirondelle.web4j.database

Examples of hirondelle.web4j.database.ConnectionSource


    return sortMap(result);
  }

  private Map<String, Map<String, String>> getDbInfo() throws DAOException {
    Map<String, Map<String, String>> result = new HashMap<String, Map<String, String>>();
    ConnectionSource connSource = BuildImpl.forConnectionSource();
    for(String dbName : connSource.getDatabaseNames() ){
      result.put(dbName, getDbInfo(dbName, connSource));
    }
    return result;
  }
View Full Code Here


    TroubleTicket.init(aConfig, appInfo);
    initMoney(aConfig);
   
    fLogger.config("Calling ConnectionSource.init(ServletConfig).");
    ConnectionSource connSource = BuildImpl.forConnectionSource();
    connSource.init(aConfig);
    fLogger.fine("Init of internal classes, ConnectionSource completed " + stopwatch + " after start.");

    tryDatabaseInitAndStartupTasks();
    fLogger.fine("Database init and startup tasks completed " + stopwatch + " after start.");
   
View Full Code Here

      throw new RuntimeException("Cannot connect to one or more databases!! Cannot execute request.");
    }
  }
 
  private void tryDatabaseInitAndStartupTasks() throws DAOException, AppException {
    ConnectionSource connSrc = BuildImpl.forConnectionSource();
    if ( connSrc.getDatabaseNames().isEmpty() ) {
      fLogger.config("No databases in this application, since ConnectionSource returns an empty Set for database names.");
      fDbStartupSuccess = true; //since no db at all
    }
    else {
      fLogger.config("Attempting data layer startup tasks.");
View Full Code Here

TOP

Related Classes of hirondelle.web4j.database.ConnectionSource

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.