Example #1
0
 /** Sets the connection to the database. */
 protected DAO() {
   // TODO: global launching logger activation
   if (logger.getLevel() == null) { // Setting logger
     logger.setLevel(Level.FINER);
   }
   DBConfiguration conf = DBConfiguration.getInstance(); // Getting conf
   con = conf.getConnection();
 }