Class Rating

java.lang.Object
com.openmeet.shared.data.rating.Rating
All Implemented Interfaces:
IEntity

public class Rating extends Object implements IEntity
This class represents the Rating Entity.
See Also:
  • Field Details

  • Constructor Details

    • Rating

      public Rating()
  • Method Details

    • toHashMap

      public HashMap<String,Object> toHashMap()
      Returns the Rating as an hashMap.
      Specified by:
      toHashMap in interface IEntity
      Returns:
      the Rating as an hashMap.
      See Also:
    • toHashMap

      public HashMap<String,Object> toHashMap(String... fields)
      Returns the Rating as an hashMap.
      Specified by:
      toHashMap in interface IEntity
      Parameters:
      fields - the fields to be returned.
      Returns:
      the Rating as an hashMap.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public int getId()
      Returns the id of the Rating.
      Returns:
      the id of the Rating.
    • setId

      public void setId(int id)
      Sets the id of the Rating.
      Parameters:
      id - the id of the Rating.
    • getMeeterRater

      public int getMeeterRater()
      Returns the id of the meeter who created the Rating.
      Returns:
      the id of the meeter who created the Rating.
    • setMeeterRater

      public void setMeeterRater(int meeterRater)
      Sets the id of the meeter who created the Rating.
      Parameters:
      meeterRater - the id of the meeter who created the Rating.
    • getMeeterRated

      public int getMeeterRated()
      Returns the id of the meeter who is rated.
      Returns:
      the id of the meeter who is rated.
    • setMeeterRated

      public void setMeeterRated(int meeterRated)
      Sets the id of the meeter who is rated.
      Parameters:
      meeterRated - the id of the meeter who is rated.
    • isType

      public boolean isType()
      Returns the type of the Rating.
      Returns:
      the type of the Rating, true if the meeter is liked, false otherwise.
    • setType

      public void setType(boolean type)
      Sets the type of the Rating.
      Parameters:
      type - the type of the Rating, true if the meeter is liked, false otherwise.
    • getCreationDate

      public Timestamp getCreationDate()
      Returns the creation date of the Rating.
      Returns:
      the creation date of the Rating.
    • setCreationDate

      public void setCreationDate(Timestamp creationDate)
      Sets the creation date of the Rating.
      Parameters:
      creationDate - the creation date of the Rating.