Class Feedback
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.Feedback
- All Implemented Interfaces:
Serializable,Comparable<Object>,AuthoredBean,IDBean,ViewEntry,Cacheable
A bean to store feedback about a particular item.
- Since:
- 11.6
- Version:
- 11.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the Author of this bean.Returns the feedback comments.Returns the feedback date.Returns the CSS class for this object if rendered in a view table.intgetScore()Returns the feedback score.getType()Returns the feedback item type.inthashCode()voidsetAuthorID(int id) Updates the author of this bean.voidsetComments(String comments) Updates the feedback comments.voidsetCreatedOn(Instant dt) Updates the feedback date.voidsetScore(int s) Updates the score.toString()Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, setID, validateID, validateID
-
Constructor Details
-
Feedback
Creates the bean.- Parameters:
id- the database ID of the feedback itemc- the feedback item class
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
getType
-
getCreatedOn
Returns the feedback date.- Returns:
- the date/time the feedback was received
-
getScore
public int getScore()Returns the feedback score.- Returns:
- the score from 0 to 10
-
getComments
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin interfaceAuthoredBean- Parameters:
id- the author's database ID.- See Also:
-
setCreatedOn
Updates the feedback date.- Parameters:
dt- the date/time the feedback was received
-
setComments
Updates the feedback comments.- Parameters:
comments- the comments
-
setScore
public void setScore(int s) Updates the score.- Parameters:
s- a score between 0 and 10
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-
hashCode
public int hashCode()- Overrides:
hashCodein classDatabaseBean
-
toString
-