NewsAttachmentDAO.java
上传用户:junmaots
上传日期:2022-07-09
资源大小:2450k
文件大小:1k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. /*
  2.  * Created on 2005-11-10
  3.  *
  4.  * TODO To change the template for this generated file go to
  5.  * Window - Preferences - Java - Code Style - Code Templates
  6.  */
  7. package com.mycompany.news.dao;
  8. import java.sql.Connection;
  9. import java.util.List;
  10. import com.mycompany.news.dto.News;
  11. import com.mycompany.news.dto.NewsAttachment;
  12. /**
  13.  * @author Administrator
  14.  *
  15.  * TODO To change the template for this generated type comment go to
  16.  * Window - Preferences - Java - Code Style - Code Templates
  17.  */
  18. public interface NewsAttachmentDAO {
  19. public void addNewsAttachment(NewsAttachment newsAttachment)throws Exception;//添加NewsAttachment信息
  20. public void updateNewsAttachment(NewsAttachment newsAttachment)throws Exception;//修改NewsAttachment信息
  21. public void deleteAttrByNews(News news)throws Exception;//删除NewsAttachment信息
  22. public void deleteNewsAttachment(NewsAttachment newsAttachment)throws Exception;//删除NewsAttachment信息
  23. public List listAllNewsAttachments()throws Exception;//列出所有的NewsAttachment信息
  24. public List listNewsAttachments(NewsAttachment newsAttachmentCondition)throws Exception;//组合条件查询
  25. public NewsAttachment getByID(long id)throws Exception;//根据主键获取对象
  26. public void setConnection(Connection conn);
  27. public Connection getConnection();
  28. public List getRecommendedNewsAttachment(long columnid) throws Exception;
  29. }