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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)