com.atlassian.bamboo.chains
Class ChainHibernateDao

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

public class ChainHibernateDao
extends BambooHibernateObjectDao
implements ChainDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ChainHibernateDao()
           
 
Method Summary
 java.util.List<Chain> getAllChains()
          Returns all of the Chain's
 Chain getByChainKey(java.lang.String fullKey)
          Gets a build chain by its key (eg BAM-FOO)
 Chain getByKey(Project project, java.lang.String key)
          Gets a chain by its key (eg, FOO)
 Chain getByName(Project project, java.lang.String name)
          Gets a chain by its name
 java.lang.Class getPersistentClass()
           
 
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

ChainHibernateDao

public ChainHibernateDao()
Method Detail

getPersistentClass

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

getAllChains

@NotNull
public java.util.List<Chain> getAllChains()
Description copied from interface: ChainDao
Returns all of the Chain's

Specified by:
getAllChains in interface ChainDao
Returns:
chains

getByName

@Nullable
public Chain getByName(@NotNull
                                Project project,
                                @NotNull
                                java.lang.String name)
Description copied from interface: ChainDao
Gets a chain by its name

Specified by:
getByName in interface ChainDao
Returns:
chain

getByChainKey

@Nullable
public Chain getByChainKey(@NotNull
                                    java.lang.String fullKey)
Description copied from interface: ChainDao
Gets a build chain by its key (eg BAM-FOO)

Specified by:
getByChainKey in interface ChainDao
Returns:
chain

getByKey

@Nullable
public Chain getByKey(@NotNull
                               Project project,
                               @NotNull
                               java.lang.String key)
Description copied from interface: ChainDao
Gets a chain by its key (eg, FOO)

Specified by:
getByKey in interface ChainDao
Returns:
chain


Copyright © 2010 Atlassian. All Rights Reserved.