Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.blogspot.sontx.web.helloworld.model.bo;
- import com.blogspot.sontx.web.helloworld.model.bean.Account;
- import com.blogspot.sontx.web.helloworld.model.dao.ProcessLoginDAO;
- public class ProcessLoginBO {
- private ProcessLoginDAO processLoginDAO;
- public boolean checkLogin(String username, String password){
- if(username == null || username.length() < 3)
- return false;
- if(password == null || password.length() < 6)
- return false;
- boolean ret = processLoginDAO.checkLogin(username, password);
- return ret;
- }
- public Account getAccount(String username){
- if(username == null || username.length() < 3)
- return null;
- Account account = processLoginDAO.getAccount(username);
- return account;
- }
- public ProcessLoginBO(){
- processLoginDAO = new ProcessLoginDAO();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement