Package com.atlassian.bamboo.chains
Interface ChainStageDao
- All Superinterfaces:
BambooObjectDao<ChainStage>
- All Known Implementing Classes:
ChainStageHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
@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 Details
-
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
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
Marks the stage for deletion in the underlying store.- Parameters:
chainStage
- the stage to mark for deletion
-