Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: mill/forum/SimpleForum.java


1   package mill.forum;
2   
3   import mill.port.InitPage;
4   import mill.db.DBconnect;
5   
6   public class SimpleForum extends Forum
7   {
8   
9      public String getNameTable()
10     {
11    return "main_forum_threads";
12     }
13  
14     public String getNameIdSequence()
15     {
16    return "seq_main_forum_message";
17     }
18     public String getNameThreadSequence()
19     {
20    return "SEQ_MAIN_FORUM_THREADS";
21     }
22  
23     public SimpleForum(javax.servlet.http.HttpServletRequest request,
24      javax.servlet.http.HttpServletResponse response,
25      InitPage jspPage)
26    throws ForumException
27     {
28    super(request,response,jspPage);
29     }
30  
31     public SimpleForum(){}
32  
33     public ForumMessage getForumMessage(DBconnect db__, long id__)
34    throws ForumException
35     {
36  //System.out.println("ID #1.001: "+id__);
37    try{
38      return SimpleForumMessage.getInstance(db__, id__ );
39    }
40    catch(Exception e)
41    {
42      throw new ForumException(e.toString() );
43    }
44     }
45  
46  }