Class ArtifactLinkHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.build.artifact.ArtifactLinkHibernateDao
- All Implemented Interfaces:
bucket.core.persistence.ObjectDao
,ArtifactLinkDao
,BambooObjectDao
,org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<ArtifactLink>
findArtifactLinks
(@NotNull String label, @NotNull ResultsSummary resultsSummary) @NotNull Collection<ArtifactLink>
findArtifactsByChainResultKey
(@NotNull PlanResultKey chainResultKey) Gets all theArtifactLink
s for the givenPlanResultKey
@NotNull Collection<ArtifactLink>
getArtifactLinks
(@NotNull ResultsSummary resultsSummary, @Nullable String linkType) void
removeAll
(@NotNull Collection<ArtifactLink> artifactLinkCollection) Removes all ArtifactLink objects from the collection.void
removeById
(long artifactLinkId) Remove artifact link by its id.long
scrollArtifactLinksForExport
(@NotNull Consumer<ArtifactLink> consumer) Scroll through all ArtifactLink records and pass them to consumerMethods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationData
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, 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
-
Constructor Details
-
ArtifactLinkHibernateDao
public ArtifactLinkHibernateDao()
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClass
in interfacebucket.core.persistence.ObjectDao
-
removeAll
Description copied from interface:ArtifactLinkDao
Removes all ArtifactLink objects from the collection.- Specified by:
removeAll
in interfaceArtifactLinkDao
- Parameters:
artifactLinkCollection
- ArtifactLink objects to be removed.
-
removeById
public void removeById(long artifactLinkId) Description copied from interface:ArtifactLinkDao
Remove artifact link by its id.- Specified by:
removeById
in interfaceArtifactLinkDao
-
findArtifactLinks
@NotNull public @NotNull Collection<ArtifactLink> findArtifactLinks(@NotNull @NotNull String label, @NotNull @NotNull ResultsSummary resultsSummary) - Specified by:
findArtifactLinks
in interfaceArtifactLinkDao
-
getArtifactLinks
@NotNull public @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType) Description copied from interface:ArtifactLinkDao
- Specified by:
getArtifactLinks
in interfaceArtifactLinkDao
- Returns:
- artifactLinks
-
findArtifactsByChainResultKey
@NotNull public @NotNull Collection<ArtifactLink> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey) Description copied from interface:ArtifactLinkDao
Gets all theArtifactLink
s for the givenPlanResultKey
- Specified by:
findArtifactsByChainResultKey
in interfaceArtifactLinkDao
-
scrollArtifactLinksForExport
Description copied from interface:ArtifactLinkDao
Scroll through all ArtifactLink records and pass them to consumer- Specified by:
scrollArtifactLinksForExport
in interfaceArtifactLinkDao
-