| java.lang.Object dlog4j.ReplyManager
ReplyManager | public class ReplyManager (Code) | | author: Liudong 评论管理 |
Method Summary | |
protected static Calendar | buildCalendar(int year, int month, int date, boolean clearTime) | public static ReplyForm | getLogForm(Session ssn, SiteForm site, UserForm loginUser, int log_id) | public static int | getRepliesCount(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, int year, int month, int date) | public static int | getSearchReplyCount(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, String search) | public static List | listReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, int from, int count, String orderField, int year, int month, int date) | public static List | listReplies(Session ssn, SiteForm site, UserForm loginUser, int count) | protected static void | resetCalendar(Calendar cal) | public static List | searchAllReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, String search, String orderField) | public static List | searchReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, String search, String orderField, int from, int count) | public static int[] | statReplies(Session ssn, SiteForm site, UserForm loginUser, int year, int month) | public static int[] | statReplies(Session ssn, SiteForm site, UserForm loginUser, Calendar month) |
FIELD_WRITETIME | final public static String FIELD_WRITETIME(Code) | | |
buildCalendar | protected static Calendar buildCalendar(int year, int month, int date, boolean clearTime)(Code) | | 根据参数构建一个日历对象实例
Parameters: year - Parameters: month - 1-12 Parameters: date - Parameters: clearTime - 是否清除时间字段 |
getLogForm | public static ReplyForm getLogForm(Session ssn, SiteForm site, UserForm loginUser, int log_id)(Code) | | 读取指定的评论信息
Parameters: ssn - Parameters: site - Parameters: loginUser - Parameters: log_id - |
getRepliesCount | public static int getRepliesCount(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, int year, int month, int date) throws HibernateException(Code) | | 获取日记总数
Parameters: ssn - Parameters: site - Parameters: cat_id - 指定某个日记分类 |
getSearchReplyCount | public static int getSearchReplyCount(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, String search) throws IOException, ParseException, HibernateException(Code) | | 获取查询到的评论信息的总数,用于分页
Parameters: ssn - Parameters: site - Parameters: loginUser - Parameters: cat_id - Parameters: userid - Parameters: search - throws: IOException - throws: ParseException - throws: HibernateException - |
listReplies | public static List listReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, int from, int count, String orderField, int year, int month, int date) throws HibernateException(Code) | | 列出某个分类下的评论
Parameters: ssn - Parameters: site - Parameters: cat_id - Parameters: orderField - throws: HibernateException - |
listReplies | public static List listReplies(Session ssn, SiteForm site, UserForm loginUser, int count) throws HibernateException(Code) | | 列出最新的评论信息
Parameters: ssn - Parameters: site - Parameters: count - @throwsSQLException throws: HibernateException - |
resetCalendar | protected static void resetCalendar(Calendar cal)(Code) | | 清除日历的时间字段
Parameters: cal - |
searchAllReplies | public static List searchAllReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, String search, String orderField) throws HibernateException, IOException, ParseException(Code) | | 搜索符合条件的所有评论
Parameters: ssn - Parameters: site - Parameters: loginUser - Parameters: cat_id - Parameters: search - throws: HibernateException - throws: IOException - throws: ParseException - |
searchReplies | public static List searchReplies(Session ssn, SiteForm site, UserForm loginUser, int cat_id, int userid, String search, String orderField, int from, int count) throws IOException, ParseException, HibernateException(Code) | | 搜索评论信息
Parameters: ssn - Parameters: site - Parameters: loginUser - Parameters: cat_id - Parameters: userid - Parameters: search - Parameters: orderField - Parameters: from - Parameters: count - throws: IOException - throws: ParseException - throws: HibernateException - |
statReplies | public static int[] statReplies(Session ssn, SiteForm site, UserForm loginUser, int year, int month) throws HibernateException(Code) | | 统计出指定月份每天的评论篇数
Parameters: ssn - Parameters: site - Parameters: year - Parameters: month - (1-12) throws: HibernateException - |
|
|