Package lumis.service.commentit
Class Comment
- java.lang.Object
-
- lumis.service.commentit.Comment
-
public class Comment extends java.lang.Object
A comment posted by an user about some entity.- Since:
- 8.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
NAMED_QUERY_DELETE_COMMENTS_BY_SERVICEINSTANCEID
protected static java.lang.String
NAMED_QUERY_FIND_COMMENTS_BY_ITEMID
protected static java.lang.String
NAMED_QUERY_FIND_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
protected static java.lang.String
NAMED_QUERY_FIND_COUNT_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
-
Constructor Summary
Constructors Constructor Description Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCommentDate()
Returns this comment's creation date.java.lang.String
getCommentText()
Returns this comment's text.java.lang.String
getId()
Returns this comment's identifier.java.lang.String
getItemId()
Returns the identifier of the entity which this comment is related.java.lang.String
getItemName()
Returns the title of the entity which this comment is related.java.lang.String
getItemServiceInstanceId()
Returns the identifier of the service instance from the entity which this comment is related.java.lang.String
getItemUrl()
Returns the URL to the details page of entity which this comment is related.java.lang.String
getServiceInstanceId()
Returns the identifier of the service instance from this comment.java.lang.String
getUserId()
Returns the identifier of the user which created this comment.void
setCommentText(java.lang.String commentText)
Sets this comment's text.void
setId(java.lang.String id)
Sets this comment's identifier.void
setItemId(java.lang.String itemId)
Sets the identifier of the entity which this comment is related.void
setItemName(java.lang.String itemName)
Sets the title of the entity which this comment is related.void
setItemServiceInstanceId(java.lang.String itemServiceInstanceId)
Sets the identifier of the service instance from the entity which this comment is related.void
setItemUrl(java.lang.String itemUrl)
Sets the URL to the details page of entity which this comment is related.void
setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the identifier of the service instance from this comment.void
setUserId(java.lang.String userId)
Sets the identifier of the user which created this comment.
-
-
-
Field Detail
-
NAMED_QUERY_FIND_COMMENTS_BY_ITEMID
protected static final java.lang.String NAMED_QUERY_FIND_COMMENTS_BY_ITEMID
- See Also:
- Constant Field Values
-
NAMED_QUERY_DELETE_COMMENTS_BY_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_DELETE_COMMENTS_BY_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
NAMED_QUERY_FIND_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_FIND_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
NAMED_QUERY_FIND_COUNT_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_FIND_COUNT_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns this comment's identifier.- Returns:
- this comment's identifier.
- Since:
- 8.0.0
-
setId
public void setId(java.lang.String id)
Sets this comment's identifier.- Parameters:
id
- the identifier value to set.- Since:
- 8.0.0
-
getServiceInstanceId
public java.lang.String getServiceInstanceId()
Returns the identifier of the service instance from this comment.- Returns:
- the identifier of the service instance from this comment.
- Since:
- 8.0.0
-
setServiceInstanceId
public void setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the identifier of the service instance from this comment.- Parameters:
serviceInstanceId
- the service instance identifier value to set.- Since:
- 8.0.0
-
getItemId
public java.lang.String getItemId()
Returns the identifier of the entity which this comment is related.- Returns:
- the the identifier of the entity which this comment is related.
- Since:
- 8.0.0
-
setItemId
public void setItemId(java.lang.String itemId)
Sets the identifier of the entity which this comment is related.- Parameters:
itemId
- the entity's identifier value to set.- Since:
- 8.0.0
-
getItemName
public java.lang.String getItemName()
Returns the title of the entity which this comment is related.- Returns:
- the title of the entity which this comment is related.
- Since:
- 8.0.0
-
setItemName
public void setItemName(java.lang.String itemName)
Sets the title of the entity which this comment is related.- Parameters:
itemName
- the entity's title value to set.- Since:
- 8.0.0
-
getItemServiceInstanceId
public java.lang.String getItemServiceInstanceId()
Returns the identifier of the service instance from the entity which this comment is related.- Returns:
- the identifier of the service instance from the entity which this comment is related.
- Since:
- 8.0.0
-
setItemServiceInstanceId
public void setItemServiceInstanceId(java.lang.String itemServiceInstanceId)
Sets the identifier of the service instance from the entity which this comment is related.- Parameters:
itemServiceInstanceId
- the entity's service instance identifier value to set.- Since:
- 8.0.0
-
getItemUrl
public java.lang.String getItemUrl()
Returns the URL to the details page of entity which this comment is related.- Returns:
- the URL to the details page of entity which this comment is related.
- Since:
- 8.0.0
-
setItemUrl
public void setItemUrl(java.lang.String itemUrl)
Sets the URL to the details page of entity which this comment is related.- Parameters:
itemUrl
- the entity's details page URL value to set.- Since:
- 8.0.0
-
getCommentText
public java.lang.String getCommentText()
Returns this comment's text.- Returns:
- this comment's text.
- Since:
- 8.0.0
-
setCommentText
public void setCommentText(java.lang.String commentText)
Sets this comment's text.- Parameters:
commentText
- the text value to set.- Since:
- 8.0.0
-
getCommentDate
public java.util.Date getCommentDate()
Returns this comment's creation date.- Returns:
- this comment's creation date.
- Since:
- 8.0.0
-
getUserId
public java.lang.String getUserId()
Returns the identifier of the user which created this comment.- Returns:
- the identifier of the user which created this comment.
- Since:
- 8.0.0
-
setUserId
public void setUserId(java.lang.String userId)
Sets the identifier of the user which created this comment.- Parameters:
userId
- the user's identifier value to set.- Since:
- 8.0.0
-
-