Update AdminDao.java

pull/1/head
prwfxgajt 8 months ago
parent acdd442fa9
commit 1ebc5cf798

@ -1,60 +1,67 @@
package com.cn.dao;
package com.cn.dao; // 定义接口所在的包名
import java.sql.SQLException;
import java.util.List;
import java.sql.SQLException; // 导入SQLException类
import java.util.List; // 导入List接口
import com.cn.domain.Admin;
import com.cn.domain.Admin; // 导入Admin实体类
/**
* @className AdminDao.java
* @description
* AdminDao.java访DAO
* <p></p>
* @author lxs
* @date 201991
*/
public interface AdminDao {
/**
*
* @param admin
* @return
* @throws SQLException
*
* <p>Admin</p>
* @param admin
* @return
* @throws SQLException
*/
int add(Admin admin) throws SQLException;
/**
*
* @param adminId
* @return
* @throws SQLException
* ID
* <p>IDID</p>
* @param adminId ID
* @return
* @throws SQLException
*/
int delete(int adminId) throws SQLException;
/**
*
* @param admin
* @return
* @throws SQLException
*
* <p>AdminID</p>
* @param admin
* @return
* @throws SQLException
*/
int update(Admin admin) throws SQLException;
/**
*
* @return
*
* <p></p>
* @return
* @throws SQLException
*/
List<Admin> getAll() throws SQLException;
/**
* id
* @param adminId
* @return
* @throws SQLException
* ID
* <p>IDID</p>
* @param adminId ID
* @return ID
* @throws SQLException
*/
Admin getById(int adminId) throws SQLException;
/**
*
* @param userName
* @return
* @throws SQLException
*
* <p></p>
* @param userName
* @return
* @throws SQLException
*/
Admin getByName(String userName) throws SQLException;
}

Loading…
Cancel
Save