?? userdao.java
字號:
package com.yhcms.manage.admin.itface;
import java.util.List;
import com.yhcms.db.DBConnException;
import com.yhcms.manage.admin.bean.AdminUser;
/**
* <p>Title:系統后臺用戶的相關操作</p>
* <li>后臺用戶的各項操作</li>
* <b>CopyRight: yyhweb[由由華網]</b>
* @author stephen
* @version YH-2.0
*/
public interface UserDao {
/** 取得用戶最大Id
* @return 用戶最大Id
* @throws DBConnException
*/
public abstract int getMaxId() throws DBConnException;
/** 增加一個新的用戶
* @param user
* @return 成功:ture 失敗:false
* @throws DBConnException
*/
public abstract boolean addAdminUser(AdminUser user) throws DBConnException;
/** 刪除一個用戶
* @param id 用戶Id
* @return 成功:ture 失敗:false
* @throws DBConnException
*/
public abstract boolean delAdminUser(int id) throws DBConnException;
/** 判斷某用戶是否存在
* @param user 用戶
* @param i 0:登錄用戶的驗證 1:增加用戶時的驗證
* @return 返回用戶Id
* @throws DBConnException
*/
public abstract int isAdminUser(AdminUser user,int i) throws DBConnException;
/** 根據用戶Id取得一個用戶
* @param id 用戶Id
* @return 一個用戶
* @throws DBConnException
*/
public abstract AdminUser getUserById(int id) throws DBConnException;
/** 取得系統所有用戶
* @return 所有用戶
* @throws DBConnException
*/
public abstract List getAllUser() throws DBConnException;
/** 編輯一個用戶
* @param user 用戶
* @return 成功:ture 失敗:false
* @throws DBConnException
*/
public abstract boolean updateAdminUser(AdminUser user) throws DBConnException;
/** 用戶登錄成功后,更新其最后登錄時間和Ip
* @param user 登錄的用戶
* @throws DBConnException
*/
public abstract void loginUser(AdminUser user) throws DBConnException;
/** 取得用戶所屬用戶組Id
* @param id 用戶Id
* @return 取得用戶所屬用戶組Id
* @throws DBConnException
*/
public abstract int getUserGroup(int id) throws DBConnException;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -