com.atlassian.bamboo.persistence
Class BambooHibernateObjectDao

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
All Implemented Interfaces:
bucket.core.persistence.ObjectDao, BambooObjectDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AclHibernateDao, AgentHibernateDao, ArtifactLinkHibernateDao, AuthorHibernateDao, CapabilityDaoImpl, CapabilityHibernateSetDao, CommentHibernateDao, CommitHibernateDao, ElasticImageConfigurationHibernateDao, ElasticInstanceScheduleDaoImpl, InstantMessagingServerHibernateDao, JiraServerHibernateDao, LabelHibernateDao, LoginInformationHibernateDao, NotificationHibernateDao, PasswordResetTokenHibernateDao, PlanDependencyHibernateDao, ProjectHibernateDao, TestResultsHibernateDao, TestsHibernateDao

public abstract class BambooHibernateObjectDao
extends com.atlassian.hibernate.HibernateObjectDao
implements BambooObjectDao

Base hibernate object dao for Bamboo


Field Summary
 
Fields inherited from class com.atlassian.hibernate.HibernateObjectDao
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BambooHibernateObjectDao()
           
 
Method Summary
 long executeCountQuery(java.lang.String queryName)
          Execute count-type query and returns result
 long executeReturnLong(org.springframework.orm.hibernate.HibernateCallback callback)
           
 BambooObject findById(long id)
          Gets the object from its id
<T> T
findById(long id, java.lang.Class<T> persistantClass)
           
 
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, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

BambooHibernateObjectDao

public BambooHibernateObjectDao()
Method Detail

findById

public BambooObject findById(long id)
Description copied from interface: BambooObjectDao
Gets the object from its id

Specified by:
findById in interface BambooObjectDao
Returns:
A BambooObject. null if not found.

findById

public <T> T findById(long id,
                      java.lang.Class<T> persistantClass)

executeReturnLong

public long executeReturnLong(@NotNull
                              org.springframework.orm.hibernate.HibernateCallback callback)

executeCountQuery

public long executeCountQuery(@NotNull
                              java.lang.String queryName)
Execute count-type query and returns result

Parameters:
queryName - name of the named query to execute
Returns:
value returned by query


Copyright © 2011 Atlassian. All Rights Reserved.