📄 contentdao.java
字号:
package com.myContent.dao;
import java.sql.SQLException;
import java.util.List;
import com.myContent.vo.Content;
import com.myContent.vo.ContentType;
public interface ContentDAO {
/**
* 根据Object实现新增
* @param Content
* @throws SQLException
*/
public abstract int createContent(Content content) throws SQLException;
/**
* 根据Object实现修改
* @param Content
* @throws SQLException
*/
public abstract int updateContent(Content content) throws SQLException;
/**
* 根据Object实现删除
* @param Content
* @throws SQLException
*/
public abstract int deleteContent(Content content) throws SQLException;
/**
* 根据contentTypeId查询Object
* @param contentId
* @return
* @throws SQLException
*/
public abstract Content queryContent(int contentId) throws SQLException;
/**
* 根据Object实现批量新增
* @param List
* @throws SQLException
*/
public abstract int createListContent(List list) throws SQLException;
/**
* 根据Object实现批量新增
* @param List
* @throws SQLException
*/
public abstract int[] createBatchListContent(List list) throws SQLException;
/**
* 获取所有的内容
* @throws SQLException
*/
public abstract List queryAllContent() throws Exception;
/**该方法用来根据类别获取所有的内容
*/
public List queryAllContent(int typeId) throws Exception ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -