Class ApplicationEntity
- java.lang.Object
-
- com.netflix.genie.web.data.services.impl.jpa.entities.IdEntity
-
- com.netflix.genie.web.data.services.impl.jpa.entities.AuditEntity
-
- com.netflix.genie.web.data.services.impl.jpa.entities.UniqueIdEntity
-
- com.netflix.genie.web.data.services.impl.jpa.entities.BaseEntity
-
- com.netflix.genie.web.data.services.impl.jpa.entities.ApplicationEntity
-
- All Implemented Interfaces:
AuditProjection,BaseProjection,IdProjection,SetupFileProjection,UniqueIdProjection,java.io.Serializable
@Entity public class ApplicationEntity extends BaseEntity
Representation of the state of an Application.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMANDS_DTO_ENTITY_GRAPHThe name of theEntityGraphwhich will eagerly load everything needed to access an applications commands and create the command DTOs.static java.lang.StringCOMMANDS_ENTITY_GRAPHThe name of theEntityGraphwhich will eagerly load everything needed to access an applications commands base fields.static java.lang.StringDTO_ENTITY_GRAPHThe name of theEntityGraphwhich will eagerly load everything needed to construct an Application DTO.
-
Constructor Summary
Constructors Constructor Description ApplicationEntity()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getType()Get the type of this application.inthashCode()voidsetConfigs(java.util.Set<FileEntity> configs)Set all the files associated as configuration files for this application.voidsetDependencies(java.util.Set<FileEntity> dependencies)Set all the files associated as dependency files for this application.voidsetTags(java.util.Set<TagEntity> tags)Set all the tags associated to this application.-
Methods inherited from class com.netflix.genie.web.data.services.impl.jpa.entities.BaseEntity
getDescription, getMetadata, getSetupFile, setDescription, setMetadata, setSetupFile
-
Methods inherited from class com.netflix.genie.web.data.services.impl.jpa.entities.AuditEntity
getCreated, getUpdated, onCreateBaseEntity, onUpdateBaseEntity
-
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.AuditProjection
getCreated, getUpdated
-
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.BaseProjection
getName, getStatus, getUser, getVersion
-
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getId
-
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.UniqueIdProjection
getUniqueId
-
-
-
-
Field Detail
-
COMMANDS_ENTITY_GRAPH
public static final java.lang.String COMMANDS_ENTITY_GRAPH
The name of theEntityGraphwhich will eagerly load everything needed to access an applications commands base fields.- See Also:
- Constant Field Values
-
COMMANDS_DTO_ENTITY_GRAPH
public static final java.lang.String COMMANDS_DTO_ENTITY_GRAPH
The name of theEntityGraphwhich will eagerly load everything needed to access an applications commands and create the command DTOs.- See Also:
- Constant Field Values
-
DTO_ENTITY_GRAPH
public static final java.lang.String DTO_ENTITY_GRAPH
The name of theEntityGraphwhich will eagerly load everything needed to construct an Application DTO.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public java.util.Optional<java.lang.String> getType()
Get the type of this application.- Returns:
- The type as an Optional in case it's null
-
setConfigs
public void setConfigs(@Nullable java.util.Set<FileEntity> configs)Set all the files associated as configuration files for this application.- Parameters:
configs- The configuration files to set
-
setDependencies
public void setDependencies(@Nullable java.util.Set<FileEntity> dependencies)Set all the files associated as dependency files for this application.- Parameters:
dependencies- The dependency files to set
-
setTags
public void setTags(@Nullable java.util.Set<TagEntity> tags)Set all the tags associated to this application.- Parameters:
tags- The dependency tags to set
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseEntity
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseEntity
-
-