private void prepareConnection() {
   daoHelper = new DaoHelper();
   daoHelper.initConn();
   connection = daoHelper.getConnection();
 }
示例#2
0
 public UserDaoImpl() {
   daoHelper = new DaoHelper();
   this.connection = daoHelper.getConnection();
 }