|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.blog.database.DatabaseComment
DatabaseComment
| Field Summary | |
protected java.lang.String |
_author
|
protected java.lang.String |
_authorEmail
|
protected java.lang.String |
_authorURL
|
protected java.lang.Integer |
_blogEntryId
|
protected java.lang.Integer |
_blogId
|
protected java.lang.String |
_comment
|
protected java.util.Date |
_commentDate
|
protected Entry |
_entry
|
protected java.lang.Integer |
_id
|
protected java.lang.String |
_ip
|
protected java.util.Map |
_metaData
|
protected java.lang.Integer |
_parentId
|
protected java.lang.String |
_status
|
| Fields inherited from interface org.blojsom.blog.Response |
COMMENT_TYPE, PINGBACK_TYPE, TRACKBACK_TYPE |
| Constructor Summary | |
DatabaseComment()
Create a new instance of the database comment |
|
| Method Summary | |
java.lang.String |
getAuthor()
Get the author of the comment |
java.lang.String |
getAuthorEmail()
Get the e-mail of the author of the comment |
java.lang.String |
getAuthorURL()
Get the URL of the author |
java.lang.Integer |
getBlogEntryId()
Get the blog entry ID |
java.lang.Integer |
getBlogId()
Get the blog ID |
java.lang.String |
getComment()
Get the comment |
java.util.Date |
getCommentDate()
Get the date the comment was entered |
java.util.Date |
getDate()
Retrieve the date for this object |
java.lang.String |
getDateAsFormat(java.lang.String format)
Return the comment date formatted with a specified date format |
java.lang.String |
getDateAsFormat(java.lang.String format,
java.util.Locale locale)
Return the comment date formatted with a specified date format |
Entry |
getEntry()
Get the Entry |
java.lang.String |
getEscapedAuthor()
Get the author as an escaped string |
java.lang.String |
getEscapedAuthorEmail()
Get the escaped e-mail of the author of the comment |
java.lang.String |
getEscapedAuthorURL()
Get the escaped URL of the author |
java.lang.String |
getEscapedComment()
Get the comment as a escaped string |
java.lang.Integer |
getId()
Get the id of this blog comment |
java.lang.String |
getIp()
Get the IP |
java.lang.String |
getISO8601Date()
Return an ISO 8601 style date http://www.w3.org/TR/NOTE-datetime |
java.util.Map |
getMetaData()
Get the comment meta-data |
java.lang.Integer |
getParentId()
Get the comment parent ID |
java.lang.String |
getRFC822Date()
Return an RFC 822 style date |
java.lang.String |
getStatus()
Get the status |
java.lang.String |
getType()
Get the response type |
void |
setAuthor(java.lang.String author)
Set the author of the comment |
void |
setAuthorEmail(java.lang.String authorEmail)
Set the e-mail of the author of the comment |
void |
setAuthorURL(java.lang.String authorURL)
Set the URL for the author |
void |
setBlogEntryId(java.lang.Integer blogEntryId)
Set the blog entry ID |
void |
setBlogId(java.lang.Integer blogId)
Set the blog ID |
void |
setComment(java.lang.String comment)
Set the new comment |
void |
setCommentDate(java.util.Date commentDate)
Set the date for the comment |
void |
setEntry(Entry entry)
Set the Entry |
void |
setId(java.lang.Integer id)
Set the id of this blog comment. |
void |
setIp(java.lang.String ip)
Set the IP |
void |
setMetaData(java.util.Map metaData)
Set the comment meta-data |
void |
setParentId(java.lang.Integer parentId)
Set the comment parent ID |
void |
setStatus(java.lang.String status)
Set the status |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Integer _id
protected java.lang.Integer _blogId
protected java.lang.Integer _blogEntryId
protected Entry _entry
protected java.lang.String _author
protected java.lang.String _authorEmail
protected java.lang.String _authorURL
protected java.lang.String _comment
protected java.util.Date _commentDate
protected java.util.Map _metaData
protected java.lang.Integer _parentId
protected java.lang.String _status
protected java.lang.String _ip
| Constructor Detail |
public DatabaseComment()
| Method Detail |
public java.lang.Integer getId()
getId in interface Commentpublic void setId(java.lang.Integer id)
setId in interface Commentid - New idpublic void setBlogId(java.lang.Integer blogId)
setBlogId in interface CommentblogId - Blog IDpublic java.lang.Integer getBlogId()
getBlogId in interface Commentpublic java.lang.Integer getBlogEntryId()
getBlogEntryId in interface Commentpublic void setBlogEntryId(java.lang.Integer blogEntryId)
setBlogEntryId in interface CommentblogEntryId - Blog entry IDpublic Entry getEntry()
Entry
getEntry in interface CommentEntrypublic void setEntry(Entry entry)
Entry
setEntry in interface Commententry - Entrypublic java.lang.String getAuthor()
getAuthor in interface Commentpublic java.lang.String getEscapedAuthor()
getEscapedAuthor in interface Commentpublic void setAuthor(java.lang.String author)
setAuthor in interface Commentauthor - Comment's new authorpublic java.lang.String getAuthorEmail()
getAuthorEmail in interface Commentpublic java.lang.String getEscapedAuthorEmail()
getEscapedAuthorEmail in interface Commentpublic void setAuthorEmail(java.lang.String authorEmail)
setAuthorEmail in interface CommentauthorEmail - Author's new e-mailpublic java.lang.String getAuthorURL()
getAuthorURL in interface Commentpublic java.lang.String getEscapedAuthorURL()
getEscapedAuthorURL in interface Commentpublic void setAuthorURL(java.lang.String authorURL)
setAuthorURL in interface CommentauthorURL - New URL for the authorpublic java.lang.String getEscapedComment()
getEscapedComment in interface Commentpublic java.lang.String getComment()
getComment in interface Commentpublic void setComment(java.lang.String comment)
setComment in interface Commentcomment - New commentpublic java.util.Date getCommentDate()
getCommentDate in interface Commentpublic java.lang.String getISO8601Date()
getISO8601Date in interface Commentpublic java.lang.String getRFC822Date()
getRFC822Date in interface Commentpublic java.util.Map getMetaData()
getMetaData in interface CommentMappublic void setCommentDate(java.util.Date commentDate)
setCommentDate in interface CommentcommentDate - Comment datepublic void setMetaData(java.util.Map metaData)
setMetaData in interface CommentmetaData - Map containing meta-data for this commentpublic java.lang.String getDateAsFormat(java.lang.String format)
getDateAsFormat in interface Commentformat - Date format
null if the comment date or format is null, otherwise returns the comment date
formatted to the specified format. If the format is invalid, returns commentDate.toString()
public java.lang.String getDateAsFormat(java.lang.String format,
java.util.Locale locale)
getDateAsFormat in interface Commentformat - Date formatlocale - Locale for date formatting
null if the entry date or format is null, otherwise returns the entry date formatted to the specified format. If the format is invalid, returns commentDate.toString()public java.lang.Integer getParentId()
getParentId in interface Commentpublic void setParentId(java.lang.Integer parentId)
setParentId in interface CommentparentId - Comment parent IDpublic java.lang.String getIp()
getIp in interface Responsepublic void setIp(java.lang.String ip)
setIp in interface Responseip - IP
public java.lang.String getStatus()
getStatus in interface Responsepublic void setStatus(java.lang.String status)
setStatus in interface Responsestatus - Statuspublic java.util.Date getDate()
getDate in interface Responsepublic java.lang.String getType()
getType in interface Response
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||