📄 blockdao.java
字号:
package com.lovo.dao;
import java.sql.SQLException;
import java.util.List;
import com.lovo.po.BlockPO;
public interface BlockDAO {
/**
* 添加版块
* @param po
* @throws SQLException
*/
public void insert(BlockPO po) throws SQLException;
/**
* 删除版块
* @param id
* @throws SQLException
*/
public void delete(int id) throws SQLException;
/**
* 删除版块
* @param areaID
* @throws SQLException
*/
public void deleteByAreaID(int areaID) throws SQLException;
/**
* 修改版块信息
* @param po
* @throws SQLException
*/
public void update(BlockPO po) throws SQLException;
/**
* 查询一个区域下的所有版块
* @param id
* @return
* @throws SQLException
*/
public List<BlockPO> queryBlockByAreaId(int id) throws SQLException;
/**
* 查询某一个版块
* @param id
* @return
* @throws SQLException
*/
public BlockPO queryBlockById(int id) throws SQLException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -