| |
|
| java.lang.Object org.blojsom.blog.database.DatabaseComment
DatabaseComment | public class DatabaseComment implements Comment,Serializable(Code) | | DatabaseComment
author: David Czarnecki since: blojsom 3.0 version: $Id: DatabaseComment.java,v 1.8 2007/01/17 02:35:16 czarneckid Exp $ |
DatabaseComment | public DatabaseComment()(Code) | | Create a new instance of the database comment
|
getAuthor | public String getAuthor()(Code) | | Get the author of the comment
Comment author |
getAuthorEmail | public String getAuthorEmail()(Code) | | Get the e-mail of the author of the comment
Author's e-mail |
getAuthorURL | public String getAuthorURL()(Code) | | Get the URL of the author
Author's URL |
getBlogEntryId | public Integer getBlogEntryId()(Code) | | Get the blog entry ID
Blog entry ID |
getBlogId | public Integer getBlogId()(Code) | | Get the blog ID
Blog ID |
getComment | public String getComment()(Code) | | Get the comment
Comment |
getCommentDate | public Date getCommentDate()(Code) | | Get the date the comment was entered
Comment date |
getDate | public Date getDate()(Code) | | Retrieve the date for this object
Date |
getDateAsFormat | public String getDateAsFormat(String format)(Code) | | Return the comment date formatted with a specified date format
Parameters: format - Date format null if the comment date or format is null, otherwise returns the comment dateformatted to the specified format. If the format is invalid, returns commentDate.toString() |
getDateAsFormat | public String getDateAsFormat(String format, Locale locale)(Code) | | Return the comment date formatted with a specified date format
Parameters: format - Date format Parameters: locale - 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() |
getEscapedAuthor | public String getEscapedAuthor()(Code) | | Get the author as an escaped string
Escaped author |
getEscapedAuthorEmail | public String getEscapedAuthorEmail()(Code) | | Get the escaped e-mail of the author of the comment
Escaped author e-mail |
getEscapedAuthorURL | public String getEscapedAuthorURL()(Code) | | Get the escaped URL of the author
Escaped URL |
getEscapedComment | public String getEscapedComment()(Code) | | Get the comment as a escaped string
Escaped Comment |
getISO8601Date | public String getISO8601Date()(Code) | | Return an ISO 8601 style date
http://www.w3.org/TR/NOTE-datetime
Date formatted in ISO 8601 format |
getId | public Integer getId()(Code) | | Get the id of this blog comment
Id |
getMetaData | public Map getMetaData()(Code) | | Get the comment meta-data
Meta-data as a Map |
getParentId | public Integer getParentId()(Code) | | Get the comment parent ID
Comment parent ID |
getRFC822Date | public String getRFC822Date()(Code) | | Return an RFC 822 style date
Date formatted in RFC 822 format |
getStatus | public String getStatus()(Code) | | Get the status
Status |
getType | public String getType()(Code) | | Get the response type
Response type |
setAuthor | public void setAuthor(String author)(Code) | | Set the author of the comment
Parameters: author - Comment's new author |
setAuthorEmail | public void setAuthorEmail(String authorEmail)(Code) | | Set the e-mail of the author of the comment
Parameters: authorEmail - Author's new e-mail |
setAuthorURL | public void setAuthorURL(String authorURL)(Code) | | Set the URL for the author
Parameters: authorURL - New URL for the author |
setBlogEntryId | public void setBlogEntryId(Integer blogEntryId)(Code) | | Set the blog entry ID
Parameters: blogEntryId - Blog entry ID |
setBlogId | public void setBlogId(Integer blogId)(Code) | | Set the blog ID
Parameters: blogId - Blog ID |
setComment | public void setComment(String comment)(Code) | | Set the new comment
Parameters: comment - New comment |
setCommentDate | public void setCommentDate(Date commentDate)(Code) | | Set the date for the comment
Parameters: commentDate - Comment date |
setId | public void setId(Integer id)(Code) | | Set the id of this blog comment. This method can only be called if the id has not been set.
Parameters: id - New id |
setIp | public void setIp(String ip)(Code) | | Set the IP
Parameters: ip - IP |
setMetaData | public void setMetaData(Map metaData)(Code) | | Set the comment meta-data
Parameters: metaData - Map containing meta-data for this comment |
setParentId | public void setParentId(Integer parentId)(Code) | | Set the comment parent ID
Parameters: parentId - Comment parent ID |
setStatus | public void setStatus(String status)(Code) | | Set the status
Parameters: status - Status |
|
|
|