public class PostCommentServiceImpl extends Object implements PostCommentService
| 构造器和说明 |
|---|
PostCommentServiceImpl() |
public PostCommentDAO getPostCommentDAO()
public void setPostCommentDAO(PostCommentDAO postCommentDAO)
public LogDAO getLogDAO()
public void setLogDAO(LogDAO logDAO)
public PostDAO getPostDAO()
public void setPostDAO(PostDAO postDAO)
public void save(PostComment transientInstance)
save 在接口中 PostCommentServicepublic void delete(PostComment persistentInstance)
delete 在接口中 PostCommentServicepublic PostComment findById(Integer id)
findById 在接口中 PostCommentServicepublic List<PostComment> findByExample(PostComment instance)
findByExample 在接口中 PostCommentServicepublic List findByProperty(String propertyName, Object value)
findByProperty 在接口中 PostCommentServicepublic List<PostComment> findByPostid(Object postid)
findByPostid 在接口中 PostCommentServicepublic List<PostComment> findByAddtime(Object addtime)
findByAddtime 在接口中 PostCommentServicepublic List<PostComment> findByUserid(Object userid)
findByUserid 在接口中 PostCommentServicepublic List<PostComment> findByText(Object text)
findByText 在接口中 PostCommentServicepublic List findAll()
findAll 在接口中 PostCommentServicepublic PostComment merge(PostComment detachedInstance)
merge 在接口中 PostCommentServicepublic void attachDirty(PostComment instance)
attachDirty 在接口中 PostCommentServicepublic void attachClean(PostComment instance)
attachClean 在接口中 PostCommentServicepublic List commentAndUser(int postid)
PostCommentServicecommentAndUser 在接口中 PostCommentServicepostid - 帖子idpublic List commentAndUser(int postid, int limit)
PostCommentServicecommentAndUser 在接口中 PostCommentServicepostid - 帖子idlimit - 条数,若为0则显示所有public int count(int postid)
PostCommentServicecount 在接口中 PostCommentServicepostid - 帖子idpublic BaseVO deleteComment(int id)
PostCommentServicedeleteComment 在接口中 PostCommentServiceid - 要删除的评论的id, PostComment.idBaseVOpublic BaseVO addComment(javax.servlet.http.HttpServletRequest request)
PostCommentServiceaddComment 在接口中 PostCommentServicerequest - HttpServletRequest
Post.id)BaseVO