Пример #1
0
 @Override
 public String searchPwd(String member_id, String member_email) {
   // TODO Auto-generated method stub
   MemberDao dao = sqlSession.getMapper(MemberDao.class);
   String pwd = dao.searchPwd(member_id, member_email);
   return pwd;
 }
Пример #2
0
  @Override
  public Member getMember(String id) {
    // TODO Auto-generated method stub
    MemberDao dao = sqlSession.getMapper(MemberDao.class);
    Member member = dao.getMember(id);

    // session.commit();
    // session.close();

    return member;
  }
Пример #3
0
  @Override
  public List<Member> getMembers(int page, String field, String query) throws SQLException {
    // TODO Auto-generated method stub
    // SqlSession session = ssf.openSession();
    MemberDao dao = sqlSession.getMapper(MemberDao.class);

    List<Member> list = dao.getMembers(page, field, query);
    // session.close();

    return list;
  }
Пример #4
0
  @Override
  public int insert(Member member) throws SQLException {
    // TODO Auto-generated method stub
    // SqlSession session = ssf.openSession();
    MemberDao dao = sqlSession.getMapper(MemberDao.class);
    int aft = dao.insert(member);

    // session.commit();
    // session.close();

    return aft;
  }
Пример #5
0
 public String idCheck(String uid) {
   MemberDao dao = sqlSession.getMapper(MemberDao.class);
   String chkId = dao.idCheck(uid);
   return chkId;
 }