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
public class ArtifactLinkHibernateDao extends BambooHibernateObjectDao implements ArtifactLinkDao
-
-
Constructor Summary
Constructors Constructor Description ArtifactLinkHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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)
Class
getPersistentClass()
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 consumer-
Methods 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
-
-
-
-
Method Detail
-
getPersistentClass
public Class getPersistentClass()
- Specified by:
getPersistentClass
in interfacebucket.core.persistence.ObjectDao
-
removeAll
public void removeAll(@NotNull @NotNull Collection<ArtifactLink> artifactLinkCollection)
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
public long scrollArtifactLinksForExport(@NotNull @NotNull Consumer<ArtifactLink> consumer)
Description copied from interface:ArtifactLinkDao
Scroll through all ArtifactLink records and pass them to consumer- Specified by:
scrollArtifactLinksForExport
in interfaceArtifactLinkDao
-
-