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,- java.io.Serializable
 
 @Entity public class CriterionEntity extends IdEntity Entity for criteria records.- Since:
- 3.3.0
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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.inthashCode()voidsetName(java.lang.String name)Set the name this criterion used.voidsetStatus(java.lang.String status)Set the status this criterion used.voidsetTags(java.util.Set<TagEntity> tags)Set all the tags associated to this criterion.voidsetUniqueId(java.lang.String uniqueId)Set the unique id this criterion used.voidsetVersion(java.lang.String version)Set the version this criterion used.- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjectiongetId
 
- 
 
- 
- 
- 
Constructor Detail- 
CriterionEntitypublic 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- 
getUniqueIdpublic 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
 
 - 
setUniqueIdpublic void setUniqueId(@Nullable java.lang.String uniqueId)Set the unique id this criterion used.- Parameters:
- uniqueId- The unique id to set
 
 - 
getNamepublic 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
 
 - 
setNamepublic void setName(@Nullable java.lang.String name)Set the name this criterion used.- Parameters:
- name- The name to set
 
 - 
getVersionpublic 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
 
 - 
setVersionpublic void setVersion(@Nullable java.lang.String version)Set the version this criterion used.- Parameters:
- version- The version to set
 
 - 
getStatuspublic 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
 
 - 
setStatuspublic void setStatus(@Nullable java.lang.String status)Set the status this criterion used.- Parameters:
- status- The version to set
 
 - 
setTagspublic void setTags(@Nullable java.util.Set<TagEntity> tags)Set all the tags associated to this criterion.- Parameters:
- tags- The criterion tags to set
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-