⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topicdao.java

📁 struts+hibernate BBS mysql数据库 功能基本齐全
💻 JAVA
字号:
package com.elan.forum.dao;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import com.elan.forum.manager.TopicMgr;
import com.elan.forum.model.ForumTopic;
import com.elan.forum.model.Forumpiece;
import com.elan.forum.model.Forumtopicreply;
import com.elan.forum.model.Forumtopictype;
import com.elan.forum.model.Forummodule;
import com.elan.forum.model.view.Forumnewtopic;

public interface TopicDAO {
	public List<ForumTopic> getAllTopic();

	public ForumTopic findForumtopic(int id);
	
	public int modifyForumtopic(int id);
	
	public int modifyForumtopic(ForumTopic forumtopic);
	
	public int addForumtopic(ForumTopic forumtopic);	
	
	public int deleteForumtopic(int id);
	
	public int deleteForumtopic(ForumTopic forumtopic);
	
	public int postTopic(ForumTopic topic) ;

	public Object[] getTopicById(int id);

	public List<Forumtopictype> getAllTopicType();

	public List<Forummodule> getForumModule();

	public List<Forummodule> getForumModuleByTransaction();

	public HashMap getForumModuleTopic(HashMap fmaMap);

	public List<Forumnewtopic> getForumnewtopic();

	public List<ForumTopic> findPiece(Integer pieceId);

	public ForumTopic findPieceTopic(Integer topicId);

	public List<Forumtopicreply> findTopicRegly(Integer topicId);

	public Forumtopicreply getLastTopicReplyById(Integer topicReplyId);

	public boolean replyTopic(Forumtopicreply forumTopicReply);

	public Forumtopicreply findTopicReplyById(Integer topicReplyId);

	public byte[] getForumPieceIsNew();

	public Long getForumTopicCount();
	
	public Map getForumPieceTopic(Integer page, Integer pageSize,Integer pieceId);

	public Map getForumTopicReply(Integer page, Integer pageSize, Integer topicId);

	public boolean saveTopic(ForumTopic forumTopic);

	public ForumTopic getTopicId(Integer topicId);

	public List<ForumTopic> getNewPostTopic(Integer pieceId, Integer page, Integer pageSize);

	public List<ForumTopic> getHotTopic(Integer pieceId, Integer page,
			Integer pageSize);

	public Forumpiece getForumPieceById(Integer pieceId);

	public List<Forummodule> getModule();

	public List<Forumpiece> getPiece();

	public Map<String, Object> search(Integer moduleId, Integer pieceId,
			Integer topicId, Integer hotReal, String topicName, String author,
			Timestamp startTime, Timestamp endTime, Integer precision, Integer page, Integer pageSize);

	public List<ForumTopic> getTopTopic(Integer pieceId);

	public List<ForumTopic> getEssenceTopic(Integer pieceId);

	public Long getTopicCountById(Integer topicId);

	public Long getTopicCountByHql(String hql);

	public List<ForumTopic> getUserTopic(Integer id, Integer page, Integer pageSize);

	public Integer getCount(Integer authorId);

	public Integer getCount(String hql);

	public Integer getHotTopicCount(Integer id);

	public List<ForumTopic> getUserHotTopic(Integer id, Integer page,
			Integer pageSize);

	public Integer getEssenceTopicCount(Integer id);

	public List<ForumTopic> getUserEssenceTopic(Integer id, Integer page,
			Integer pageSize);

	public Integer getUserReplyTopic(Integer id);

	public List<ForumTopic> getUserReplyed(Integer id, Integer page,
			Integer pageSize);
	
}




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -