Package com.atlassian.bamboo.chains
Interface ChainStageDao
-
- All Superinterfaces:
BambooObjectDao<ChainStage>
- All Known Implementing Classes:
ChainStageHibernateDao
@Internal public interface ChainStageDao extends BambooObjectDao<ChainStage>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getChainStageCount()
@NotNull com.google.common.collect.Multimap<PlanKey,Long>
getChainStagesMarkedForDeletion()
long
getManualChainStageCount()
@Nullable BambooEntityOid
getMaxStageOid(int serverKey)
Returns the maxBambooEntityOid
that's currently in use ofBambooEntityType.STAGE
type, with the given server key.void
markForDeletion(@NotNull ImmutableChainStage chainStage)
Marks the stage for deletion in the underlying store.-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
getChainStagesMarkedForDeletion
@NotNull @NotNull com.google.common.collect.Multimap<PlanKey,Long> getChainStagesMarkedForDeletion()
- Returns:
- all
ChainStage
s that are marked as deleted
-
getChainStageCount
long getChainStageCount()
- Returns:
- the total number of ChainStages (Stages) that exist on the bamboo instance
-
getManualChainStageCount
long getManualChainStageCount()
- Returns:
- the total number of ChainStages (Stages) that exist on the bamboo instance that are marked as manual
-
getMaxStageOid
@Nullable @Nullable BambooEntityOid getMaxStageOid(int serverKey)
Returns the maxBambooEntityOid
that's currently in use ofBambooEntityType.STAGE
type, with the given server key. Returns null if no OIDs are in use of this type with the given server key.
-
markForDeletion
void markForDeletion(@NotNull @NotNull ImmutableChainStage chainStage)
Marks the stage for deletion in the underlying store.- Parameters:
chainStage
- the stage to mark for deletion
-
-