?? accountbo.java
字號:
package usermanager.bo;
import java.util.ArrayList;
import usermanager.access.mapper.AccountMapper;
import usermanager.dto.AccountDTO;
public class AccountBO {
public boolean login(String username, String password) throws Exception {
AccountMapper mapper = null;
boolean found = false;
try {
mapper = new AccountMapper();
found = mapper.login(username, password);
}
catch (Exception e) {
throw e;
}
return found;
}
public void insertNewUser(AccountDTO newUser) throws Exception {
AccountMapper mapper = null;
try {
mapper = new AccountMapper();
mapper.insertNewUser(newUser);
}
catch (Exception e) {
throw e;
}
}
public AccountDTO getUserInformation(String username) throws Exception {
AccountMapper mapper = null;
try {
mapper = new AccountMapper();
return mapper.getUserInformation(username);
}
catch (Exception e) {
throw e;
}
}
public ArrayList<AccountDTO> listUser() throws Exception {
AccountMapper mapper = null;
try {
mapper = new AccountMapper();
return mapper.listUser();
}
catch (Exception e) {
throw e;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -