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,Serializable
Representation of the state of an Application.
- Since:
- 2.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of theEntityGraphwhich will eagerly load everything needed to access an applications commands and create the command DTOs.static final StringThe name of theEntityGraphwhich will eagerly load everything needed to access an applications commands base fields.static final StringThe name of theEntityGraphwhich will eagerly load everything needed to construct an Application DTO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetType()Get the type of this application.inthashCode()voidsetConfigs(Set<FileEntity> configs) Set all the files associated as configuration files for this application.voidsetDependencies(Set<FileEntity> dependencies) Set all the files associated as dependency files for this application.voidSet 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, setSetupFileMethods inherited from class com.netflix.genie.web.data.services.impl.jpa.entities.AuditEntity
getCreated, getUpdated, onCreateBaseEntity, onUpdateBaseEntityMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.AuditProjection
getCreated, getUpdatedMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.BaseProjection
getName, getStatus, getUser, getVersionMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getIdMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.UniqueIdProjection
getUniqueId
-
Field Details
-
COMMANDS_ENTITY_GRAPH
The name of theEntityGraphwhich will eagerly load everything needed to access an applications commands base fields.- See Also:
-
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:
-
DTO_ENTITY_GRAPH
The name of theEntityGraphwhich will eagerly load everything needed to construct an Application DTO.- See Also:
-
-
Constructor Details
-
ApplicationEntity
public ApplicationEntity()Default constructor.
-
-
Method Details
-
getType
Get the type of this application.- Returns:
- The type as an Optional in case it's null
-
setConfigs
Set all the files associated as configuration files for this application.- Parameters:
configs- The configuration files to set
-
setDependencies
Set all the files associated as dependency files for this application.- Parameters:
dependencies- The dependency files to set
-
setTags
Set all the tags associated to this application.- Parameters:
tags- The dependency tags to set
-
equals
- Overrides:
equalsin classBaseEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseEntity
-