com.atlassian.bamboo.labels
Class LabelHibernateDao

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.labels.LabelHibernateDao
All Implemented Interfaces:
bucket.core.persistence.ObjectDao, LabelDao, BambooObjectDao, org.springframework.beans.factory.InitializingBean

public class LabelHibernateDao
extends BambooHibernateObjectDao
implements LabelDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LabelHibernateDao()
           
 
Method Summary
 java.util.List findBuildResultsSummaryByLabel(Label label)
           
 Label findLabelByNameAndNamespace(java.lang.String name, java.lang.String namespace)
           
 Labelling findLabellingByBuild(Label label, Build build)
           
 Labelling findLabellingByBuildResultsSummary(Label label, BuildResultsSummary buildResultsSummary)
           
 Labelling findLabellingByProject(Label label, Project project)
           
 java.util.List findLabellingByUser(java.lang.String userName)
           
 java.util.List findLabels(Build build)
           
 java.util.List findLabels(Project project)
           
 java.util.List findLabels(java.lang.String namespace, int maxResults)
           
 java.util.List findLabels(java.lang.String namespace, int maxResults, Build build)
           
 java.util.List findLabels(java.lang.String namespace, int maxResults, Project project)
           
 java.lang.Class getPersistentClass()
           
 int getUsageCountForLabel(Label label)
           
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
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

LabelHibernateDao

public LabelHibernateDao()
Method Detail

getPersistentClass

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

findLabelByNameAndNamespace

public Label findLabelByNameAndNamespace(java.lang.String name,
                                         java.lang.String namespace)
Specified by:
findLabelByNameAndNamespace in interface LabelDao

findLabellingByBuildResultsSummary

public Labelling findLabellingByBuildResultsSummary(Label label,
                                                    BuildResultsSummary buildResultsSummary)
Specified by:
findLabellingByBuildResultsSummary in interface LabelDao

findLabellingByBuild

public Labelling findLabellingByBuild(Label label,
                                      Build build)
Specified by:
findLabellingByBuild in interface LabelDao

findLabellingByProject

public Labelling findLabellingByProject(Label label,
                                        Project project)
Specified by:
findLabellingByProject in interface LabelDao

getUsageCountForLabel

public int getUsageCountForLabel(Label label)
Specified by:
getUsageCountForLabel in interface LabelDao

findBuildResultsSummaryByLabel

public java.util.List findBuildResultsSummaryByLabel(Label label)
Specified by:
findBuildResultsSummaryByLabel in interface LabelDao

findLabels

public java.util.List findLabels(java.lang.String namespace,
                                 int maxResults)
Specified by:
findLabels in interface LabelDao

findLabels

public java.util.List findLabels(java.lang.String namespace,
                                 int maxResults,
                                 Build build)
Specified by:
findLabels in interface LabelDao

findLabels

public java.util.List findLabels(java.lang.String namespace,
                                 int maxResults,
                                 Project project)
Specified by:
findLabels in interface LabelDao

findLabels

public java.util.List findLabels(Build build)
Specified by:
findLabels in interface LabelDao

findLabels

public java.util.List findLabels(Project project)
Specified by:
findLabels in interface LabelDao

findLabellingByUser

public java.util.List findLabellingByUser(java.lang.String userName)
Specified by:
findLabellingByUser in interface LabelDao


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.