Example #1
0
 private void loadTopic(String _topicid) {
   if (_topicid != null && _topicid.length() > 0) {
     this.topic = new Topic();
     try {
       this.topic = bm.loadTopicById(Integer.parseInt(_topicid));
     } catch (NumberFormatException e) {
       e.printStackTrace();
     } catch (ClassNotFoundException e) {
       e.printStackTrace();
     } catch (SQLException e) {
       e.printStackTrace();
     }
     System.out.println("intotopicupdate---loadTopic---" + this.topic.toString());
   }
 }
Example #2
0
 private void updateTopicTime(int _topicid, String _updatetime) {
   Topic topic = new Topic();
   try {
     topic = bm.loadTopicById(_topicid);
   } catch (ClassNotFoundException e) {
     e.printStackTrace();
   } catch (SQLException e) {
     e.printStackTrace();
   }
   topic.setLastupdate(_updatetime);
   try {
     bm.update(topic);
   } catch (ClassNotFoundException e) {
     e.printStackTrace();
   } catch (SQLException e) {
     e.printStackTrace();
   }
 }