java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.entities.IdEntity
com.netflix.genie.web.data.services.impl.jpa.entities.CriterionEntity
All Implemented Interfaces:
IdProjection, Serializable

@Entity public class CriterionEntity extends IdEntity
Entity for criteria records.
Since:
3.3.0
See Also:
  • Constructor Details

    • CriterionEntity

      public CriterionEntity(@Nullable String uniqueId, @Nullable String name, @Nullable String version, @Nullable String status, @Nullable Set<TagEntity> tags)
      Constructor.
      Parameters:
      uniqueId - The unique id of the resource this criterion is or was trying to match
      name - The name of the resource this criterion is or was trying to match
      version - The version of the resource this criterion is or was trying to match
      status - The status of the resource this criterion is or was trying to match
      tags - The tags on the resource this criterion is or was trying to match
  • Method Details

    • getUniqueId

      public Optional<String> getUniqueId()
      Get the unique id this criterion was using if there was one.
      Returns:
      The unique id wrapped in an Optional
    • setUniqueId

      public void setUniqueId(@Nullable String uniqueId)
      Set the unique id this criterion used.
      Parameters:
      uniqueId - The unique id to set
    • getName

      public Optional<String> getName()
      Get the name this criterion was using if there was one.
      Returns:
      The name wrapped in an Optional
    • setName

      public void setName(@Nullable String name)
      Set the name this criterion used.
      Parameters:
      name - The name to set
    • getVersion

      public Optional<String> getVersion()
      Get the version this criterion was using if there was one.
      Returns:
      The version wrapped in an Optional
    • setVersion

      public void setVersion(@Nullable String version)
      Set the version this criterion used.
      Parameters:
      version - The version to set
    • getStatus

      public Optional<String> getStatus()
      Get the status this criterion was using if there was one.
      Returns:
      The status wrapped in an Optional
    • setStatus

      public void setStatus(@Nullable String status)
      Set the status this criterion used.
      Parameters:
      status - The version to set
    • setTags

      public void setTags(@Nullable Set<TagEntity> tags)
      Set all the tags associated to this criterion.
      Parameters:
      tags - The criterion tags to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class IdEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdEntity