コード例 #1
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public void editRelpy(int replyId, int topicId, String content)
     throws SQLException, ClassNotFoundException {
   IForumData itf = new ForumDataProxy();
   itf.editReply(replyId, content);
   Global.cache().deleteCache("CurrentTopic", String.valueOf(topicId));
 }
コード例 #2
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public void newTopic(String topicName, String userName, String content, String topicListName)
     throws SQLException, ClassNotFoundException {
   IForumData itf = new ForumDataProxy();
   itf.newTopic(topicName, userName, content, topicListName);
   Global.cache().deleteCache("CurrentForumList", topicListName);
 }
コード例 #3
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public void newReply(String content, int topicId, String userName)
     throws SQLException, ClassNotFoundException {
   // TODO Auto-generated method stub
   IForumData itf = new ForumDataProxy();
   itf.newReply(content, topicId, userName);
   Global.cache().deleteCache("CurrentTopic", String.valueOf(topicId));
 }
コード例 #4
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public void deleteReply(int replyId, int topicId) throws SQLException, ClassNotFoundException {
   Global.cache().deleteCache("CurrentTopic", String.valueOf(topicId));
   IForumData itf = new ForumDataProxy();
   int del[] = new int[1];
   del[0] = replyId;
   itf.deleteReply(del);
 }
コード例 #5
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public void deleteTopic(int topicId, String listName)
     throws SQLException, ClassNotFoundException {
   Global.cache().deleteCache("CurrentTopic", String.valueOf(topicId));
   Global.cache().deleteCache("CurrentForumList", listName);
   IForumData itf = new ForumDataProxy();
   int del[] = new int[1];
   del[0] = topicId;
   itf.deleteTopic(del);
 }
コード例 #6
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public TopicDetail getTopic(int topicId) throws SQLException, ClassNotFoundException {
   TopicDetail result =
       (TopicDetail) Global.cache().getCache("CurrentTopic", String.valueOf(topicId));
   if (result == null) {
     IForumData itf = new ForumDataProxy();
     result = itf.getTopic(topicId);
     if (result != null) {
       Global.cache().insert("CurrentTopic", String.valueOf(topicId), result);
     }
   }
   return result;
 }
コード例 #7
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public TopicListDetail getTopicList(String topicListName)
     throws SQLException, ClassNotFoundException {
   TopicListDetail result =
       (TopicListDetail) Global.cache().getCache("CurrentForumList", topicListName);
   if (result == null) {
     IForumData itf = new ForumDataProxy();
     result = itf.getTopicList(topicListName);
     if (result != null) {
       Global.cache().insert("CurrentForumList", topicListName, result);
     }
   }
   return result;
 }
コード例 #8
0
ファイル: ForumProxy.java プロジェクト: djlchr11b1/bingle
 @Override
 public ForumList getForumList() throws SQLException, ClassNotFoundException {
   IForumData itf = new ForumDataProxy();
   return itf.getForumList();
 }