【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-ChannelDAO.java,希望本篇文章对您学习有所帮助。
/*
* Created on 2005-11-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.mycompany.news.dao;
import java.sql.Connection;
import java.util.List;
import com.mycompany.news.dto.Channel;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public interface ChannelDAO {
public void addChannel(Channel channel)throws Exception;//添加Channel信息
public void updateChannel(Channel channel)throws Exception;//修改Channel信息
public void deleteChannel(Channel channel)throws Exception;//删除Channel信息
public List listAllChannels()throws Exception;//列出所有的Channel信息
public List listChannels(Channel channelCondition)throws Exception;//组合条件查询
public Channel getByID(long id)throws Exception;//根据主键获取对象
public void setConnection(Connection conn);
public Connection getConnection();
public List getChildren(Long channelID) throws Exception;
}
上一篇:
ChannelCommand.java
下一篇:
多年来只想说一句,我不怪你