Class CriterionEntity
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 for criteria records.
- Since:
- 3.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Get the name this criterion was using if there was one.Get the status this criterion was using if there was one.Get the unique id this criterion was using if there was one.Get the version this criterion was using if there was one.int
hashCode()
void
Set the name this criterion used.void
Set the status this criterion used.void
Set all the tags associated to this criterion.void
setUniqueId
(String uniqueId) Set the unique id this criterion used.void
setVersion
(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 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 matchname
- The name of the resource this criterion is or was trying to matchversion
- The version of the resource this criterion is or was trying to matchstatus
- The status of the resource this criterion is or was trying to matchtags
- The tags on the resource this criterion is or was trying to match
-
-
Method Details
-
getUniqueId
Get the unique id this criterion was using if there was one.- Returns:
- The unique id wrapped in an
Optional
-
setUniqueId
Set the unique id this criterion used.- Parameters:
uniqueId
- The unique id to set
-
getName
Get the name this criterion was using if there was one.- Returns:
- The name wrapped in an
Optional
-
setName
Set the name this criterion used.- Parameters:
name
- The name to set
-
getVersion
Get the version this criterion was using if there was one.- Returns:
- The version wrapped in an
Optional
-
setVersion
Set the version this criterion used.- Parameters:
version
- The version to set
-
getStatus
Get the status this criterion was using if there was one.- Returns:
- The status wrapped in an
Optional
-
setStatus
Set the status this criterion used.- Parameters:
status
- The version to set
-
setTags
Set all the tags associated to this criterion.- Parameters:
tags
- The criterion tags to set
-
equals
-
hashCode
public int hashCode()
-