Example #1
0
 @Override
 public boolean findUser(String username, String password) {
   boolean flag = false;
   try {
     flag = dao.findUser(username, password);
   } catch (Exception e) {
     e.printStackTrace();
   } finally {
     JdbcUtils.close(conn);
   }
   return flag;
 }
Example #2
0
  public UserDaoProxy() {

    this.conn = JdbcUtils.getConnection();
    this.dao = new UserDaoImpl(conn);
  }