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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<ArtifactLink>findArtifactLinks(@NotNull String label, @NotNull ResultsSummary resultsSummary) @NotNull Collection<ArtifactLink>findArtifactsByChainResultKey(@NotNull PlanResultKey chainResultKey) Gets all theArtifactLinks for the givenPlanResultKey@NotNull Collection<ArtifactLink>getArtifactLinks(@NotNull ResultsSummary resultsSummary, @Nullable String linkType) voidremoveAll(@NotNull Collection<ArtifactLink> artifactLinkCollection) Removes all ArtifactLink objects from the collection.voidremoveById(long artifactLinkId) Remove artifact link by its id.longscrollArtifactLinksForExport(@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, updateModificationDataMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
-
Constructor Details
-
ArtifactLinkHibernateDao
public ArtifactLinkHibernateDao()
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClassin interfacebucket.core.persistence.ObjectDao
-
removeAll
Description copied from interface:ArtifactLinkDaoRemoves all ArtifactLink objects from the collection.- Specified by:
removeAllin interfaceArtifactLinkDao- Parameters:
artifactLinkCollection- ArtifactLink objects to be removed.
-
removeById
public void removeById(long artifactLinkId) Description copied from interface:ArtifactLinkDaoRemove artifact link by its id.- Specified by:
removeByIdin interfaceArtifactLinkDao
-
findArtifactLinks
@NotNull public @NotNull Collection<ArtifactLink> findArtifactLinks(@NotNull @NotNull String label, @NotNull @NotNull ResultsSummary resultsSummary) - Specified by:
findArtifactLinksin interfaceArtifactLinkDao
-
getArtifactLinks
@NotNull public @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType) Description copied from interface:ArtifactLinkDao- Specified by:
getArtifactLinksin interfaceArtifactLinkDao- Returns:
- artifactLinks
-
findArtifactsByChainResultKey
@NotNull public @NotNull Collection<ArtifactLink> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey) Description copied from interface:ArtifactLinkDaoGets all theArtifactLinks for the givenPlanResultKey- Specified by:
findArtifactsByChainResultKeyin interfaceArtifactLinkDao
-
scrollArtifactLinksForExport
Description copied from interface:ArtifactLinkDaoScroll through all ArtifactLink records and pass them to consumer- Specified by:
scrollArtifactLinksForExportin interfaceArtifactLinkDao
-