com.atlassian.bamboo.labels
Class LabelHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
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
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
java.util.List<BuildResultsSummary> |
findBuildResultsSummaryByLabel(Label label)
|
Label |
findLabelByNameAndNamespace(java.lang.String name,
java.lang.String namespace)
|
Labelling |
findLabellingByBuild(Label label,
Plan plan)
|
Labelling |
findLabellingByBuildResultsSummary(Label label,
BuildResultsSummary buildResultsSummary)
|
Labelling |
findLabellingByProject(Label label,
Project project)
|
java.util.List<Labelling> |
findLabellingByUser(java.lang.String userName)
|
java.util.List<Labelling> |
findLabellingsByBuild(Label label,
Plan plan)
|
java.util.List |
findLabels(Plan plan)
|
java.util.List |
findLabels(Project project)
|
java.util.List |
findLabels(java.lang.String namespace,
int maxResults)
|
java.util.List<LabelCount> |
findLabels(java.lang.String namespace,
int maxResults,
Plan plan)
|
java.util.List |
findLabels(java.lang.String namespace,
int maxResults,
Project project)
|
java.util.List<Label> |
findLabelsByNameAndNamespace(java.util.List<java.lang.String> names,
java.lang.String namespace)
Find any labels that match the names in the specic namespace |
java.util.List<Label> |
findLabelsMatchingString(java.lang.String match,
java.lang.String escapeChar)
Find any labels that match the specified string. |
java.lang.Class |
getPersistentClass()
|
int |
getUsageCountForLabel(Label label)
|
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 bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
LabelHibernateDao
public LabelHibernateDao()
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
findLabelsByNameAndNamespace
public java.util.List<Label> findLabelsByNameAndNamespace(java.util.List<java.lang.String> names,
java.lang.String namespace)
- Description copied from interface:
LabelDao
- Find any labels that match the names in the specic namespace
- Specified by:
findLabelsByNameAndNamespace
in interface LabelDao
- Returns:
findLabelsMatchingString
public java.util.List<Label> findLabelsMatchingString(java.lang.String match,
java.lang.String escapeChar)
- Description copied from interface:
LabelDao
- Find any labels that match the specified string. Uses wildcard matching, eg LIKE %name%
- Specified by:
findLabelsMatchingString
in interface LabelDao
escapeChar
- to escape special characters eg % _
- Returns:
- list of matching labels
findLabellingByBuildResultsSummary
public Labelling findLabellingByBuildResultsSummary(Label label,
BuildResultsSummary buildResultsSummary)
- Specified by:
findLabellingByBuildResultsSummary
in interface LabelDao
findLabellingByBuild
@Nullable
public Labelling findLabellingByBuild(Label label,
Plan plan)
- Specified by:
findLabellingByBuild
in interface LabelDao
findLabellingsByBuild
public java.util.List<Labelling> findLabellingsByBuild(Label label,
Plan plan)
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<BuildResultsSummary> 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<LabelCount> findLabels(java.lang.String namespace,
int maxResults,
Plan plan)
- 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(Plan plan)
- 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<Labelling> findLabellingByUser(java.lang.String userName)
- Specified by:
findLabellingByUser
in interface LabelDao
Copyright © 2010 Atlassian. All Rights Reserved.