|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bejug.javacareers.jobs.model.AbstractPersistableObject
org.bejug.javacareers.jobs.model.Comment
The comment which is linked to one Offer.
| Constructor Summary | |
Comment()
Default constructor needed for Hibernate. |
|
Comment(Item offer,
User user,
java.lang.String subject,
java.lang.String content)
|
|
Comment(java.lang.String subject,
java.lang.String content)
|
|
| Method Summary | |
void |
addChildComment(Comment childComment)
Convenience method to add a child comment. |
void |
addUser(User newuser)
adds the user to the comment. |
int |
compareTo(java.lang.Object comment)
method to implement for the comparator. |
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getChildComments()
Returns the child comments. |
java.lang.String |
getContent()
Returns the comment content. |
Item |
getOffer()
Returns the related offer. |
Comment |
getParentComment()
Returns the parent comment. |
java.lang.String |
getSubject()
|
User |
getUser()
|
int |
hashCode()
|
void |
setChildComments(java.util.Set childComments)
Set the child comments. |
void |
setContent(java.lang.String content)
Set the comment content. |
void |
setOffer(Item offer)
The offer to which the comment is related to. |
void |
setParentComment(Comment parentComment)
Set the parent comment, if null then this comment is the root comment. |
void |
setSubject(java.lang.String subject)
|
void |
setUser(User user)
|
java.lang.String |
toString()
|
| Methods inherited from class org.bejug.javacareers.jobs.model.AbstractPersistableObject |
getCreationDate, getId, getModificationDate, getVersion, isEditable, isNew, setCreationDate, setEditable, setId, setModificationDate, setVersion |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Comment()
public Comment(Item offer,
User user,
java.lang.String subject,
java.lang.String content)
offer - The offer to set.user - The user to set.subject - The subject to set.content - The content to set
public Comment(java.lang.String subject,
java.lang.String content)
subject - The subject to set.content - The content to set| Method Detail |
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - The subject to setpublic void setOffer(Item offer)
offer - the offer.public Item getOffer()
public Comment getParentComment()
public void setParentComment(Comment parentComment)
parentComment - the parent comment.public java.util.Set getChildComments()
public void setChildComments(java.util.Set childComments)
childComments - the child comments.public java.lang.String getContent()
public void setContent(java.lang.String content)
content - The comment content.public void addChildComment(Comment childComment)
childComment - The child comment.public User getUser()
public void setUser(User user)
user - The user to set.public void addUser(User newuser)
newuser - the user to add.public int compareTo(java.lang.Object comment)
compareTo in interface java.lang.ComparablecompareTo in class AbstractPersistableObjectcomment - the other comment to compare with.
public boolean equals(java.lang.Object o)
equals in class AbstractPersistableObjectpublic int hashCode()
hashCode in class AbstractPersistableObjectpublic java.lang.String toString()
toString in class AbstractPersistableObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||