|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<VariableDefinition> com.atlassian.bamboo.variable.VariableDefinitionHibernateDao
public class VariableDefinitionHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
VariableDefinitionHibernateDao()
|
Method Summary | |
---|---|
int |
deleteByDeploymentVersion(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to DeploymentVersions. |
int |
deleteByEnvironment(DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to Environments. |
java.util.Collection<? extends VariableDefinition> |
findAll()
Find all variable definitions |
VariableDefinition |
findById(long id)
Find variable definition of specified id |
VariableDefinition |
findGlobalVariableByKey(java.lang.String key)
Find global variable by its key |
java.util.List<VariableDefinition> |
findGlobalVariables()
Find global variable definitions. |
VariableDefinition |
findPlanVariableByKey(PlanIdentifier plan,
java.lang.String key)
Find plan variable by its key |
java.lang.Iterable<VariableDefinition> |
findVariablesByEnvironmentId(long environmentId)
Find variables associated with deployment Environment |
java.util.List<VariableDefinition> |
findVariablesByPlan(PlanIdentifier plan)
Find plan variable definitions for a given plan |
java.lang.Iterable<VariableDefinition> |
findVariablesByVersionId(long deploymentVersionId)
Find variables associated with deployment DeploymentVersion |
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao |
---|
delete, deleteAll, execute, executeCountQuery, executeFind, executeReturnLong, findAll, findById, save, saveAll |
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport |
---|
getCacheAwareHibernateTemplate |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao |
---|
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll |
Constructor Detail |
---|
public VariableDefinitionHibernateDao()
Method Detail |
---|
public VariableDefinition findById(long id)
VariableDefinitionDao
findById
in interface VariableDefinitionDao
id
- id of variable definition
@NotNull public java.util.List<VariableDefinition> findGlobalVariables()
VariableDefinitionDao
findGlobalVariables
in interface VariableDefinitionDao
@NotNull public java.util.List<VariableDefinition> findVariablesByPlan(@NotNull PlanIdentifier plan)
VariableDefinitionDao
findVariablesByPlan
in interface VariableDefinitionDao
plan
- plan which associated variable definition should be retrieved
@NotNull public java.lang.Iterable<VariableDefinition> findVariablesByEnvironmentId(long environmentId)
VariableDefinitionDao
Environment
findVariablesByEnvironmentId
in interface VariableDefinitionDao
environmentId
- id of a deployment environment
@NotNull public java.lang.Iterable<VariableDefinition> findVariablesByVersionId(long deploymentVersionId)
VariableDefinitionDao
DeploymentVersion
findVariablesByVersionId
in interface VariableDefinitionDao
deploymentVersionId
- id of a deployment environment
public int deleteByEnvironment(@NotNull DeletionSQLAdapter deletionAdapter)
VariableDefinitionDao
deleteByEnvironment
in interface VariableDefinitionDao
deletionAdapter
- DeletionSQLAdapter.getInClause()
public int deleteByDeploymentVersion(@NotNull DeletionSQLAdapter deletionAdapter)
VariableDefinitionDao
deleteByDeploymentVersion
in interface VariableDefinitionDao
public VariableDefinition findPlanVariableByKey(@NotNull PlanIdentifier plan, @NotNull java.lang.String key)
VariableDefinitionDao
findPlanVariableByKey
in interface VariableDefinitionDao
plan
- plan used to filter variableskey
- key which identifies plan variable definition
public VariableDefinition findGlobalVariableByKey(@NotNull java.lang.String key)
VariableDefinitionDao
findGlobalVariableByKey
in interface VariableDefinitionDao
key
- key which identifies global variable definition
@NotNull public java.util.Collection<? extends VariableDefinition> findAll()
VariableDefinitionDao
findAll
in interface VariableDefinitionDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |