|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Comment
public void setId(java.lang.Integer id)
setId
in interface Comment
id
- New idpublic void setBlogId(java.lang.Integer blogId)
setBlogId
in interface Comment
blogId
- Blog IDpublic java.lang.Integer getBlogId()
getBlogId
in interface Comment
public java.lang.Integer getBlogEntryId()
getBlogEntryId
in interface Comment
public void setBlogEntryId(java.lang.Integer blogEntryId)
setBlogEntryId
in interface Comment
blogEntryId
- Blog entry IDpublic Entry getEntry()
Entry
getEntry
in interface Comment
Entry
public void setEntry(Entry entry)
Entry
setEntry
in interface Comment
entry
- Entry
public java.lang.String getAuthor()
getAuthor
in interface Comment
public java.lang.String getEscapedAuthor()
getEscapedAuthor
in interface Comment
public void setAuthor(java.lang.String author)
setAuthor
in interface Comment
author
- Comment's new authorpublic java.lang.String getAuthorEmail()
getAuthorEmail
in interface Comment
public java.lang.String getEscapedAuthorEmail()
getEscapedAuthorEmail
in interface Comment
public void setAuthorEmail(java.lang.String authorEmail)
setAuthorEmail
in interface Comment
authorEmail
- Author's new e-mailpublic java.lang.String getAuthorURL()
getAuthorURL
in interface Comment
public java.lang.String getEscapedAuthorURL()
getEscapedAuthorURL
in interface Comment
public void setAuthorURL(java.lang.String authorURL)
setAuthorURL
in interface Comment
authorURL
- New URL for the authorpublic java.lang.String getEscapedComment()
getEscapedComment
in interface Comment
public java.lang.String getComment()
getComment
in interface Comment
public void setComment(java.lang.String comment)
setComment
in interface Comment
comment
- New commentpublic java.util.Date getCommentDate()
getCommentDate
in interface Comment
public java.lang.String getISO8601Date()
getISO8601Date
in interface Comment
public java.lang.String getRFC822Date()
getRFC822Date
in interface Comment
public java.util.Map getMetaData()
getMetaData
in interface Comment
Map
public void setCommentDate(java.util.Date commentDate)
setCommentDate
in interface Comment
commentDate
- Comment datepublic void setMetaData(java.util.Map metaData)
setMetaData
in interface Comment
metaData
- Map
containing meta-data for this commentpublic java.lang.String getDateAsFormat(java.lang.String format)
getDateAsFormat
in interface Comment
format
- 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 Comment
format
- 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 Comment
public void setParentId(java.lang.Integer parentId)
setParentId
in interface Comment
parentId
- Comment parent IDpublic java.lang.String getIp()
getIp
in interface Response
public void setIp(java.lang.String ip)
setIp
in interface Response
ip
- IP
public java.lang.String getStatus()
getStatus
in interface Response
public void setStatus(java.lang.String status)
setStatus
in interface Response
status
- Statuspublic java.util.Date getDate()
getDate
in interface Response
public java.lang.String getType()
getType
in interface Response
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |