public class VariableContextBaselineHibernateDao extends BambooHibernateObjectDao<VariableContextBaseline> implements VariableContextBaselineDao
Constructor and Description |
---|
VariableContextBaselineHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
Modifier and Type | Method and Description |
---|---|
int |
deleteOrphans()
Delete orphaned VariableContextBaseline records.
|
VariableContextBaseline |
findByDeploymentResultId(long deploymentResultId) |
VariableContextBaseline |
findById(long id) |
VariableContextBaseline |
getVariableContextBaseline(long variableContextBaselineId) |
long |
iterateVariableContextBaselinesForExport(Consumer<VariableContextBaseline> consumer)
Iterate through and execute function for each of VariableContextBaseline
|
VariableContextBaseline |
resolveVariableContextBaseline(VariableContext variableContext)
Searches for a context baseline with exactly the same set of variables.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public VariableContextBaselineHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
@Nullable public VariableContextBaseline findById(long id)
findById
in interface VariableContextBaselineDao
@Nullable public VariableContextBaseline findByDeploymentResultId(long deploymentResultId)
findByDeploymentResultId
in interface VariableContextBaselineDao
public int deleteOrphans()
VariableContextBaselineDao
deleteOrphans
in interface VariableContextBaselineDao
public long iterateVariableContextBaselinesForExport(@NotNull Consumer<VariableContextBaseline> consumer)
VariableContextBaselineDao
iterateVariableContextBaselinesForExport
in interface VariableContextBaselineDao
consumer
- consumer to accept each of the VariableContextBaseline@Nullable public VariableContextBaseline getVariableContextBaseline(long variableContextBaselineId)
getVariableContextBaseline
in interface VariableContextBaselineDao
public VariableContextBaseline resolveVariableContextBaseline(@NotNull VariableContext variableContext)
VariableContextBaselineDao
resolveVariableContextBaseline
in interface VariableContextBaselineDao
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.