Class CriterionEntity

  • All Implemented Interfaces:
    IdProjection, java.io.Serializable

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

      Constructors 
      Constructor Description
      CriterionEntity​(java.lang.String uniqueId, java.lang.String name, java.lang.String version, java.lang.String status, java.util.Set<TagEntity> tags)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      java.util.Optional<java.lang.String> getName()
      Get the name this criterion was using if there was one.
      java.util.Optional<java.lang.String> getStatus()
      Get the status this criterion was using if there was one.
      java.util.Optional<java.lang.String> getUniqueId()
      Get the unique id this criterion was using if there was one.
      java.util.Optional<java.lang.String> getVersion()
      Get the version this criterion was using if there was one.
      int hashCode()
      void setName​(java.lang.String name)
      Set the name this criterion used.
      void setStatus​(java.lang.String status)
      Set the status this criterion used.
      void setTags​(java.util.Set<TagEntity> tags)
      Set all the tags associated to this criterion.
      void setUniqueId​(java.lang.String uniqueId)
      Set the unique id this criterion used.
      void setVersion​(java.lang.String version)
      Set the version this criterion used.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection

        getId
    • Constructor Detail

      • CriterionEntity

        public CriterionEntity​(@Nullable
                               java.lang.String uniqueId,
                               @Nullable
                               java.lang.String name,
                               @Nullable
                               java.lang.String version,
                               @Nullable
                               java.lang.String status,
                               @Nullable
                               java.util.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 Detail

      • getUniqueId

        public java.util.Optional<java.lang.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
                                java.lang.String uniqueId)
        Set the unique id this criterion used.
        Parameters:
        uniqueId - The unique id to set
      • getName

        public java.util.Optional<java.lang.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
                            java.lang.String name)
        Set the name this criterion used.
        Parameters:
        name - The name to set
      • getVersion

        public java.util.Optional<java.lang.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
                               java.lang.String version)
        Set the version this criterion used.
        Parameters:
        version - The version to set
      • getStatus

        public java.util.Optional<java.lang.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
                              java.lang.String status)
        Set the status this criterion used.
        Parameters:
        status - The version to set
      • setTags

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object