public interface VariableDefinitionDao extends BambooObjectDao<VariableDefinition>
| Modifier and Type | Method and Description |
|---|---|
int |
deleteByDeploymentVersion(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to DeploymentVersions.
|
int |
deleteByEnvironment(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to Environments.
|
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
DeploymentVersion |
countAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, 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 Iterable<VariableDefinition> findVariablesByEnvironmentId(long environmentId)
EnvironmentenvironmentId - id of a deployment environment@NotNull Iterable<VariableDefinition> findVariablesByVersionId(long deploymentVersionId)
DeploymentVersiondeploymentVersionId - id of a deployment environmentint deleteByEnvironment(@NotNull
DeletionSQLAdapter deletionAdapter)
deletionAdapter - DeletionSQLAdapter.getInClause()int deleteByDeploymentVersion(@NotNull
DeletionSQLAdapter deletionAdapter)
deletionAdapter - Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.