public interface VariableDefinitionDao extends BambooObjectDao<VariableDefinition>
Modifier and Type | Method and Description |
---|---|
long |
countAll() |
int |
countVariablesByEnvironmentId(long environmentId)
Count variables associated with deployment environment
|
int |
deleteByDeploymentVersion(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to DeploymentVersions.
|
int |
deleteByEnvironment(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to Environments.
|
int |
deleteByPlan(long planId)
Delete VariableDefinitions related to a plan.
|
int |
deleteByProjectId(long projectId)
Delete VariableDefinitions related to a project.
|
Collection<? extends VariableDefinition> |
findAll()
Find all variable definitions
|
VariableDefinition |
findById(long id)
Find variable definition of specified id
|
VariableDefinition |
findGlobalVariableByKey(String key)
Find global variable by its key
|
List<VariableDefinition> |
findGlobalVariables()
Find global variable definitions.
|
VariableDefinition |
findPlanVariableByKey(PlanIdentifier plan,
String key)
Find plan variable by its key
|
Iterable<VariableDefinition> |
findVariablesByEnvironmentId(long environmentId)
Find variables associated with deployment environment
|
List<VariableDefinition> |
findVariablesByPlan(long planId) |
List<VariableDefinition> |
findVariablesByPlan(PlanIdentifier plan)
Find plan variable definitions for a given plan
|
List<VariableDefinition> |
findVariablesByProjectId(long projectId)
Find variables associated with a project
|
Iterable<VariableDefinition> |
findVariablesByVersionId(long deploymentVersionId)
Find variables associated with deployment version
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable VariableDefinition findById(long id)
id
- id of variable definition@NotNull List<VariableDefinition> findGlobalVariables()
@Nullable VariableDefinition findGlobalVariableByKey(@NotNull String key)
key
- key which identifies global variable definition@NotNull List<VariableDefinition> findVariablesByPlan(@NotNull PlanIdentifier plan)
plan
- plan which associated variable definition should be retrieved@Nullable VariableDefinition findPlanVariableByKey(@NotNull PlanIdentifier plan, @NotNull String key)
plan
- plan used to filter variableskey
- key which identifies plan variable definition@NotNull Collection<? extends VariableDefinition> findAll()
@NotNull List<VariableDefinition> findVariablesByPlan(@NotNull long planId)
int countVariablesByEnvironmentId(long environmentId)
environmentId
- id of a deployment environment@NotNull Iterable<VariableDefinition> findVariablesByEnvironmentId(long environmentId)
environmentId
- id of a deployment environment@NotNull Iterable<VariableDefinition> findVariablesByVersionId(long deploymentVersionId)
deploymentVersionId
- id of a deployment versionint deleteByEnvironment(@NotNull DeletionSQLAdapter deletionAdapter)
deletionAdapter
- DeletionSQLAdapter.getInClause()
int deleteByDeploymentVersion(@NotNull DeletionSQLAdapter deletionAdapter)
deletionAdapter
- int deleteByPlan(long planId)
planId
- long countAll()
@NotNull List<VariableDefinition> findVariablesByProjectId(long projectId)
projectId
- id of a projectint deleteByProjectId(long projectId)
projectId
- Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.