com.opnworks.timesheet.domain
Class Comment

java.lang.Object
  extended bycom.opnworks.timesheet.domain.Comment
All Implemented Interfaces:
IPersistent, java.io.Serializable

public class Comment
extends java.lang.Object
implements IPersistent

Author:
laurent
See Also:
Serialized Form

Constructor Summary
Comment()
           
Comment(IPersistent subject, IPerson author, java.lang.String note)
           
 
Method Summary
 void append(java.lang.String string)
          Append the string to the note
 boolean equals(java.lang.Object other)
          Description of the Method
 java.lang.String formattedString()
           
 IPerson getAuthor()
           
 java.lang.Long getId()
          Gets the Id attribute of the IPersistent object
 java.lang.String getNote()
           
 IPersistent getSubject()
           
 java.sql.Timestamp getTimestamp()
           
 int getVersion()
          Gets the Version attribute of the Comment object
 int hashCode()
          Description of the Method
 void prepend(java.lang.String string)
          Add the string to the beginning of the note
 void setAuthor(IPerson author)
           
 void setId(java.lang.Long id)
          Sets the Id attribute of the IPersistent object
 void setNote(java.lang.String string)
           
 void setSubject(IPersistent subject)
           
 void setVersion(int version)
          Sets the Version attribute of the Comment object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(IPersistent subject,
               IPerson author,
               java.lang.String note)
Parameters:
subject - Subject of the comment
author - Author of comment
note - Text of the comment

Comment

public Comment()
Method Detail

setNote

public void setNote(java.lang.String string)
Parameters:
string -

setId

public void setId(java.lang.Long id)
Description copied from interface: IPersistent
Sets the Id attribute of the IPersistent object

Specified by:
setId in interface IPersistent
Parameters:
id - The new Id value

setAuthor

public void setAuthor(IPerson author)
Parameters:
author - The new Author value

setSubject

public void setSubject(IPersistent subject)
Parameters:
subject - The new Subject value

setVersion

public void setVersion(int version)
Sets the Version attribute of the Comment object

Specified by:
setVersion in interface IPersistent
Parameters:
version - The new Version value

getTimestamp

public java.sql.Timestamp getTimestamp()
Returns:

getNote

public java.lang.String getNote()
Returns:

getAuthor

public IPerson getAuthor()
Returns:

getId

public java.lang.Long getId()
Description copied from interface: IPersistent
Gets the Id attribute of the IPersistent object

Specified by:
getId in interface IPersistent
Returns:

getSubject

public IPersistent getSubject()
Returns:

getVersion

public int getVersion()
Gets the Version attribute of the Comment object

Specified by:
getVersion in interface IPersistent
Returns:
The Version value

formattedString

public java.lang.String formattedString()
Returns:

prepend

public void prepend(java.lang.String string)
Add the string to the beginning of the note

Parameters:
string -

append

public void append(java.lang.String string)
Append the string to the note

Parameters:
string -

equals

public boolean equals(java.lang.Object other)
Description of the Method

Parameters:
other - Description of Parameter
Returns:
Description of the Returned Value

hashCode

public int hashCode()
Description of the Method

Returns:
Description of the Returned Value