?? topicdao.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 + -