public class BambooSpecsStateDaoImpl extends Object implements BambooSpecsStateDao
Constructor and Description |
---|
BambooSpecsStateDaoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
countPlansLinkedToState(VcsLocationBambooSpecsState specsState) |
long |
countStatesByRepositoryId(long repositoryId) |
void |
delete(VcsLocationBambooSpecsState specsState) |
Optional<VcsLocationBambooSpecsState> |
findById(long specsStateId) |
List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
int limit) |
Optional<VcsLocationBambooSpecsState> |
findLatestState(long rootVcsRepositoryId,
String branch) |
Collection<PlanKey> |
findPlansInOtherStates(VcsLocationBambooSpecsState specsState) |
List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans() |
void |
saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) |
void |
scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer) |
public Optional<VcsLocationBambooSpecsState> findById(long specsStateId)
findById
in interface BambooSpecsStateDao
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch)
findLatestState
in interface BambooSpecsStateDao
public void saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
saveOrUpdate
in interface BambooSpecsStateDao
@NotNull public Collection<PlanKey> findPlansInOtherStates(@NotNull VcsLocationBambooSpecsState specsState)
findPlansInOtherStates
in interface BambooSpecsStateDao
public long countPlansLinkedToState(VcsLocationBambooSpecsState specsState)
countPlansLinkedToState
in interface BambooSpecsStateDao
public void scrollVcsLocationBambooSpecsStateForExport(@NotNull Consumer<VcsLocationBambooSpecsState> consumer)
scrollVcsLocationBambooSpecsStateForExport
in interface BambooSpecsStateDao
@NotNull public List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, int limit)
findByVcsLocationIdOrderBySpecsExecutionDate
in interface BambooSpecsStateDao
public void delete(VcsLocationBambooSpecsState specsState)
delete
in interface BambooSpecsStateDao
public long countStatesByRepositoryId(long repositoryId)
countStatesByRepositoryId
in interface BambooSpecsStateDao
public List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
getUnfinishedSpecsScans
in interface BambooSpecsStateDao
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.