Advertisement
Guest User

Untitled

a guest
May 28th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package com.blogspot.sontx.web.helloworld.model.bo;
  2.  
  3. import com.blogspot.sontx.web.helloworld.model.bean.Account;
  4. import com.blogspot.sontx.web.helloworld.model.dao.ProcessLoginDAO;
  5.  
  6. public class ProcessLoginBO {
  7. private ProcessLoginDAO processLoginDAO;
  8.  
  9. public boolean checkLogin(String username, String password){
  10. if(username == null || username.length() < 3)
  11. return false;
  12. if(password == null || password.length() < 6)
  13. return false;
  14. boolean ret = processLoginDAO.checkLogin(username, password);
  15. return ret;
  16. }
  17.  
  18. public Account getAccount(String username){
  19. if(username == null || username.length() < 3)
  20. return null;
  21. Account account = processLoginDAO.getAccount(username);
  22. return account;
  23. }
  24.  
  25. public ProcessLoginBO(){
  26. processLoginDAO = new ProcessLoginDAO();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement