public class ChainStageHibernateDao extends BambooHibernateObjectDao<ChainStage> implements ChainStageDao
Constructor and Description |
---|
ChainStageHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
getChainStageCount() |
com.google.common.collect.Multimap<PlanKey,Long> |
getChainStagesMarkedForDeletion() |
long |
getManualChainStageCount() |
BambooEntityOid |
getMaxStageOid(int serverKey)
Returns the max
BambooEntityOid that's currently in use of BambooEntityType.STAGE type, with the
given server key. |
void |
markForDeletion(ImmutableChainStage chainStage)
Marks the stage for deletion in the underlying store.
|
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
@NotNull public com.google.common.collect.Multimap<PlanKey,Long> getChainStagesMarkedForDeletion()
getChainStagesMarkedForDeletion
in interface ChainStageDao
ChainStage
s that are marked as deletedpublic long getChainStageCount()
getChainStageCount
in interface ChainStageDao
public long getManualChainStageCount()
getManualChainStageCount
in interface ChainStageDao
@Nullable public BambooEntityOid getMaxStageOid(int serverKey)
ChainStageDao
BambooEntityOid
that's currently in use of BambooEntityType.STAGE
type, with the
given server key.
Returns null if no OIDs are in use of this type with the given server key.getMaxStageOid
in interface ChainStageDao
public void markForDeletion(@NotNull ImmutableChainStage chainStage)
ChainStageDao
markForDeletion
in interface ChainStageDao
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.