com.atlassian.bamboo.build.artifact
Class ArtifactLinkHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.bamboo.persistence.BambooHibernateObjectDao
                  extended by 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


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ArtifactLinkHibernateDao()
           
 
Method Summary
 ArtifactLink findArtifactLink(java.lang.String label, ResultsSummary resultsSummary)
           
 java.util.Collection<ArtifactLink> getArtifactLinksForLinkType(ResultsSummary resultsSummary, java.lang.String linkType)
          Gets all the ArtifactLinks for the given ResultsSummary and ArtifactLink.getLinkType()
 java.lang.Class getPersistentClass()
           
 void removeAll(java.util.Collection<ArtifactLink> artifactLinkCollection)
          Removes all ArtifactLink objects from the collection.
 
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
 

Constructor Detail

ArtifactLinkHibernateDao

public ArtifactLinkHibernateDao()
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface bucket.core.persistence.ObjectDao

removeAll

public void removeAll(@NotNull
                      java.util.Collection<ArtifactLink> artifactLinkCollection)
Description copied from interface: ArtifactLinkDao
Removes all ArtifactLink objects from the collection.

Specified by:
removeAll in interface ArtifactLinkDao
Parameters:
artifactLinkCollection - ArtifactLink objects to be removed.

findArtifactLink

public ArtifactLink findArtifactLink(@NotNull
                                     java.lang.String label,
                                     @NotNull
                                     ResultsSummary resultsSummary)
Specified by:
findArtifactLink in interface ArtifactLinkDao

getArtifactLinksForLinkType

@NotNull
public java.util.Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull
                                                                              ResultsSummary resultsSummary,
                                                                              @NotNull
                                                                              java.lang.String linkType)
Description copied from interface: ArtifactLinkDao
Gets all the ArtifactLinks for the given ResultsSummary and ArtifactLink.getLinkType()

Specified by:
getArtifactLinksForLinkType in interface ArtifactLinkDao
Returns:
artifactLinks


Copyright © 2011 Atlassian. All Rights Reserved.