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 TypeMethodDescriptionint
Returns 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.int
getScore()
Returns the feedback score.getType()
Returns the feedback item type.int
hashCode()
void
setAuthorID
(int id) Updates the author of this bean.void
setComments
(String comments) Updates the feedback comments.void
setCreatedOn
(Instant dt) Updates the feedback date.void
setScore
(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:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in 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:AuthoredBean
Updates the author of this bean.- Specified by:
setAuthorID
in 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:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDatabaseBean
-
toString
-