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.
|
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(PlanIdentifier plan)
Find plan variable definitions for a given plan
|
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()
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()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.