com.xmlserv.app.news
Class Comment

java.lang.Object
  |
  +--com.xmlserv.app.news.Comment

public class Comment
extends java.lang.Object

Comment abstraction class.


Constructor Summary
Comment(java.sql.Connection con, int id)
          Load an existing comment.
Comment(int article, int userid)
          Create new Comment for given article.
 
Method Summary
 void delete(java.sql.Connection con)
           
 int getArticle()
           
 int getFollowupto()
           
 int getId()
           
 java.lang.String getLangtext()
           
 java.lang.String getTitel()
           
 java.lang.String getTstamp()
           
 int getUserid()
           
static org.jdom.Element list(java.sql.Connection con, int article, SecurityManager securityManager)
          List comments for given article.
 void save(java.sql.Connection con)
           
 void setArticle(int article)
           
 void setFollowupto(int followupto)
           
 void setLangtext(java.lang.String langtext)
           
 void setTitel(java.lang.String titel)
           
 void setTstamp(java.lang.String tstamp)
           
 void setUser(int userid)
           
 org.jdom.Element toElement(SecurityManager securityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(int article,
               int userid)
        throws XMLServException
Create new Comment for given article.

Comment

public Comment(java.sql.Connection con,
               int id)
        throws XMLServException
Load an existing comment.
Method Detail

save

public void save(java.sql.Connection con)
          throws XMLServException

delete

public void delete(java.sql.Connection con)
            throws XMLServException

toElement

public org.jdom.Element toElement(SecurityManager securityManager)
                           throws XMLServException

list

public static org.jdom.Element list(java.sql.Connection con,
                                    int article,
                                    SecurityManager securityManager)
                             throws XMLServException
List comments for given article.

getId

public int getId()

getArticle

public int getArticle()

setArticle

public void setArticle(int article)

getFollowupto

public int getFollowupto()

setFollowupto

public void setFollowupto(int followupto)

getUserid

public int getUserid()

setUser

public void setUser(int userid)

getTitel

public java.lang.String getTitel()

setTitel

public void setTitel(java.lang.String titel)

getLangtext

public java.lang.String getLangtext()

setLangtext

public void setLangtext(java.lang.String langtext)

getTstamp

public java.lang.String getTstamp()

setTstamp

public void setTstamp(java.lang.String tstamp)