|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.bamboo.persistence.BambooHibernateObjectDao com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao
public class BuildResultsSummaryHibernateDao
Field Summary | |
---|---|
protected static java.lang.String |
BUILD_AGENT_ID
|
protected static java.lang.String |
BUILD_COMPLETED_DATE
|
protected static java.lang.String |
BUILD_KEY
|
protected static java.lang.String |
BUILD_NUMBER
|
protected static java.lang.String |
BUILD_STARTED_DATE
|
protected static java.lang.String |
BUILD_STATE
|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
BuildResultsSummaryHibernateDao()
|
Method Summary | ||
---|---|---|
int |
countBuildResultsSummaries(long agentId,
BuildState buildState)
Count how many build results match the agent & optional build state |
|
int |
countBuildResultsSummaries(java.lang.String planKey)
|
|
|
findBuildResultsSummaries(BuildResultsSummaryCriteria criteria)
Searches for BuildResultsSummary objects given a BuildResultsSummaryCriteria |
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildResultsSummariesByJiraIssues(java.util.List<java.lang.String> issueKeys)
|
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildResultsSummariesByProjectKey(java.lang.String projectKey)
This seems to be the Jira project key not the Bamboo Project key |
|
java.util.List<Pair<ArtifactLink,BuildResultsSummary>> |
findBuildResultsWithArtifacts(java.lang.String planKey)
Find all build results which have matching artifacts. |
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildsForImageConfiguration(java.lang.String planKey,
ElasticImageConfiguration elasticImage,
BuildState buildState,
int maxResults)
Searcher for builds of an image |
|
ExtendedBuildResultsSummary |
findFirstBuildResultWithBuildStateAfter(java.lang.String buildKey,
int buildNumber,
BuildState buildState)
Finds the last successful ExtendedBuildResultsSummary after buildNumber |
|
ExtendedBuildResultsSummary |
findFirstBuildResultWithBuildStateBetween(java.lang.String buildKey,
int lowerBuildNumber,
int upperBuildNumber,
BuildState buildState)
Returns the first build that matches BuildState between the given build number range
Note that this function is inclusive of the upper and lower bound |
|
ExtendedBuildResultsSummary |
findLastBuildResultBefore(java.lang.String buildKey,
int buildNumber)
Finds the last successful or failed ExtendedBuildResultsSummary before buildNumber |
|
ExtendedBuildResultsSummary |
findLastBuildResultWithBuildStateBefore(java.lang.String buildKey,
int buildNumber,
BuildState buildState)
Finds the last ExtendedBuildResultsSummary before buildNumber with BuildState |
|
java.util.Collection<BuildResultsSummary> |
getAllPendingBuildResultSummaries()
Returns all the BuildResultsSummary in a BuildState.PENDING state |
|
BuildResultsSummary |
getBreakingBuild(BuildResultsSummary summary)
|
|
ExtendedBuildResultsSummary |
getBuildResultsSummary(PlanResultKey planResultKey)
|
|
ExtendedBuildResultsSummary |
getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey,
int buildNumber)
|
|
BuildResultsSummary |
getFirstBuildSummary(Build build)
Returns the first available BuildResultsSummary for the given Build |
|
BuildResultsSummary |
getFixingBuild(BuildResultsSummary summary)
Returns the first successful BuildResultsSummary for given BuildResultsSummary . |
|
java.util.List<LinkedJiraIssue> |
getJiraIssuesForBuild(Build build)
Retrieves a list of LinkedJiraIssue that are linked to the given build. |
|
java.util.List<LinkedJiraIssue> |
getJiraIssuesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Retrieves a list of LinkedJiraIssue linked to the given build result summaries |
|
ExtendedBuildResultsSummary |
getLastBuildSummary(java.lang.String planKey)
Returns the latest ExtendedBuildResultsSummary for the build represented by planKey |
|
java.util.List |
getNeighbouringSummaries(Build build,
int currentBuildNumber)
|
|
long |
getNumberOfResults(Build build)
Returns the number of results available for the given Build |
|
java.lang.Class |
getPersistentClass()
|
|
void |
removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
Removes the passed build result summary |
|
long |
scrollBuildResultSummariesForExport(java.lang.String buildKey,
com.google.common.base.Function<ExtendedBuildResultsSummary,java.lang.Void> function)
Scroll through and execute function for each of BuildResultsSummary Objects passed to function are not fully initialized. |
|
long |
scrollJiraIssuesForExport(com.google.common.base.Function<LinkedJiraIssue,java.lang.Void> function)
Scroll through and execute function for each of LinkedJiraIssue Objects passed to function are not fully initialized. |
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
---|
executeCountQuery, executeReturnLong, findById, findById |
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
---|
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Field Detail |
---|
protected static final java.lang.String BUILD_COMPLETED_DATE
protected static final java.lang.String BUILD_AGENT_ID
protected static final java.lang.String BUILD_NUMBER
protected static final java.lang.String BUILD_KEY
protected static final java.lang.String BUILD_STATE
protected static final java.lang.String BUILD_STARTED_DATE
Constructor Detail |
---|
public BuildResultsSummaryHibernateDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@NotNull public java.util.Collection<BuildResultsSummary> getAllPendingBuildResultSummaries()
BuildResultsSummaryDao
BuildResultsSummary
in a BuildState.PENDING
state
getAllPendingBuildResultSummaries
in interface BuildResultsSummaryDao
@Nullable public ExtendedBuildResultsSummary getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey, int buildNumber)
getBuildResultsSummaryByBuildKeyAndBuildNumber
in interface BuildResultsSummaryDao
@Nullable public ExtendedBuildResultsSummary getBuildResultsSummary(@NotNull PlanResultKey planResultKey)
getBuildResultsSummary
in interface BuildResultsSummaryDao
@NotNull public <T extends BuildResultsSummary> java.util.List<T> findBuildResultsSummaries(@NotNull BuildResultsSummaryCriteria criteria)
BuildResultsSummaryDao
BuildResultsSummary
objects given a BuildResultsSummaryCriteria
findBuildResultsSummaries
in interface BuildResultsSummaryDao
criteria
- @NotNull
List
of ExtendedBuildResultsSummary
public int countBuildResultsSummaries(long agentId, BuildState buildState)
BuildResultsSummaryDao
countBuildResultsSummaries
in interface BuildResultsSummaryDao
buildState
- - can be null.
public int countBuildResultsSummaries(java.lang.String planKey)
countBuildResultsSummaries
in interface BuildResultsSummaryDao
public java.util.List<ExtendedBuildResultsSummary> findBuildsForImageConfiguration(java.lang.String planKey, ElasticImageConfiguration elasticImage, @Nullable BuildState buildState, int maxResults)
BuildResultsSummaryDao
findBuildsForImageConfiguration
in interface BuildResultsSummaryDao
buildState
- @Nullable
public java.util.List<Pair<ArtifactLink,BuildResultsSummary>> findBuildResultsWithArtifacts(java.lang.String planKey)
BuildResultsSummaryDao
findBuildResultsWithArtifacts
in interface BuildResultsSummaryDao
@NotNull public java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByJiraIssues(@Nullable java.util.List<java.lang.String> issueKeys)
findBuildResultsSummariesByJiraIssues
in interface BuildResultsSummaryDao
@NotNull public java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByProjectKey(@Nullable java.lang.String projectKey)
BuildResultsSummaryDao
findBuildResultsSummariesByProjectKey
in interface BuildResultsSummaryDao
public void removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
BuildResultsSummaryDao
removeBuildResultsSummary
in interface BuildResultsSummaryDao
buildResultsSummary
- - @NotNull@Nullable public BuildResultsSummary getFirstBuildSummary(Build build)
BuildResultsSummaryDao
BuildResultsSummary
for the given Build
getFirstBuildSummary
in interface BuildResultsSummaryDao
@Nullable public ExtendedBuildResultsSummary getLastBuildSummary(java.lang.String planKey)
BuildResultsSummaryDao
ExtendedBuildResultsSummary
for the build represented by planKey
getLastBuildSummary
in interface BuildResultsSummaryDao
public long getNumberOfResults(Build build)
BuildResultsSummaryDao
Build
getNumberOfResults
in interface BuildResultsSummaryDao
@NotNull public java.util.List getNeighbouringSummaries(Build build, int currentBuildNumber)
getNeighbouringSummaries
in interface BuildResultsSummaryDao
@Nullable public BuildResultsSummary getBreakingBuild(BuildResultsSummary summary)
getBreakingBuild
in interface BuildResultsSummaryDao
@Nullable public BuildResultsSummary getFixingBuild(BuildResultsSummary summary)
BuildResultsSummaryDao
BuildResultsSummary
for given BuildResultsSummary
.
The input build is returned if it is successful.
getFixingBuild
in interface BuildResultsSummaryDao
@NotNull public java.util.List<LinkedJiraIssue> getJiraIssuesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
BuildResultsSummaryDao
LinkedJiraIssue
linked to the given build result summaries
getJiraIssuesForBuildResults
in interface BuildResultsSummaryDao
@NotNull public java.util.List<LinkedJiraIssue> getJiraIssuesForBuild(@NotNull Build build)
BuildResultsSummaryDao
LinkedJiraIssue
that are linked to the given build.
getJiraIssuesForBuild
in interface BuildResultsSummaryDao
public long scrollJiraIssuesForExport(@NotNull com.google.common.base.Function<LinkedJiraIssue,java.lang.Void> function)
BuildResultsSummaryDao
scrollJiraIssuesForExport
in interface BuildResultsSummaryDao
function
- function to be executed on each of the LinkedJiraIssue
public ExtendedBuildResultsSummary findLastBuildResultBefore(@NotNull java.lang.String buildKey, int buildNumber)
BuildResultsSummaryDao
ExtendedBuildResultsSummary
before buildNumber
findLastBuildResultBefore
in interface BuildResultsSummaryDao
public ExtendedBuildResultsSummary findFirstBuildResultWithBuildStateAfter(@NotNull java.lang.String buildKey, int buildNumber, @NotNull BuildState buildState)
BuildResultsSummaryDao
ExtendedBuildResultsSummary
after buildNumber
findFirstBuildResultWithBuildStateAfter
in interface BuildResultsSummaryDao
public ExtendedBuildResultsSummary findLastBuildResultWithBuildStateBefore(@NotNull java.lang.String buildKey, int buildNumber, @NotNull BuildState buildState)
BuildResultsSummaryDao
ExtendedBuildResultsSummary
before buildNumber with BuildState
findLastBuildResultWithBuildStateBefore
in interface BuildResultsSummaryDao
@Nullable public ExtendedBuildResultsSummary findFirstBuildResultWithBuildStateBetween(@NotNull java.lang.String buildKey, int lowerBuildNumber, int upperBuildNumber, @NotNull BuildState buildState)
BuildResultsSummaryDao
BuildState
between the given build number range
Note that this function is inclusive of the upper and lower bound
findFirstBuildResultWithBuildStateBetween
in interface BuildResultsSummaryDao
public long scrollBuildResultSummariesForExport(@NotNull java.lang.String buildKey, @NotNull com.google.common.base.Function<ExtendedBuildResultsSummary,java.lang.Void> function)
BuildResultsSummaryDao
scrollBuildResultSummariesForExport
in interface BuildResultsSummaryDao
function
- function to be executed on each of the BuildResultSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |