com.atlassian.confluence.core.persistence.hibernate
Class HibernateAnyTypeDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao
All Implemented Interfaces:
AnyTypeDao, ExporterAnyTypeDao, org.springframework.beans.factory.InitializingBean

public class HibernateAnyTypeDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements ExporterAnyTypeDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateAnyTypeDao()
           
 
Method Summary
 List findAllPersistentObjects()
          Finds all persistent objects.
 List<com.atlassian.bonnie.Handle> findAllPersistentObjectsHandles()
          Finds handles for all persistent objects.
 List<TransientHibernateHandle> findAllPersistentObjectsHibernateHandles()
          Finds handles for all persistent objects.
 Object findByHandle(com.atlassian.bonnie.Handle handle)
          Find a persistent object by its handle.
 List findByIdsAndClassName(List<Long> ids, String className)
          Find a list of objects from the same persistent class.
 Object getByIdAndType(long id, Class type)
          Find a persistent object by its id and type.
 Class getPersistentClass()
           
 void setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects)
           
 
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
 

Constructor Detail

HibernateAnyTypeDao

public HibernateAnyTypeDao()
Method Detail

findByHandle

public Object findByHandle(com.atlassian.bonnie.Handle handle)
Description copied from interface: AnyTypeDao
Find a persistent object by its handle.

Specified by:
findByHandle in interface AnyTypeDao
Parameters:
handle - the handle
Returns:
a persistent object by its handle.

getByIdAndType

public Object getByIdAndType(long id,
                             Class type)
Description copied from interface: AnyTypeDao
Find a persistent object by its id and type.

Specified by:
getByIdAndType in interface AnyTypeDao
Returns:
a persistent object by its handle.

findByIdsAndClassName

public List findByIdsAndClassName(List<Long> ids,
                                  String className)
Description copied from interface: AnyTypeDao
Find a list of objects from the same persistent class.

Specified by:
findByIdsAndClassName in interface AnyTypeDao
className - the persistent class's fully qualified class name.

findAllPersistentObjects

public List findAllPersistentObjects()
Description copied from interface: AnyTypeDao
Finds all persistent objects.

Specified by:
findAllPersistentObjects in interface AnyTypeDao
Returns:
all persistent objects.

findAllPersistentObjectsHandles

public List<com.atlassian.bonnie.Handle> findAllPersistentObjectsHandles()
Description copied from interface: AnyTypeDao
Finds handles for all persistent objects.

Specified by:
findAllPersistentObjectsHandles in interface AnyTypeDao
Returns:
handles for all persistent objects.

findAllPersistentObjectsHibernateHandles

public List<TransientHibernateHandle> findAllPersistentObjectsHibernateHandles()
Description copied from interface: ExporterAnyTypeDao
Finds handles for all persistent objects.

Specified by:
findAllPersistentObjectsHibernateHandles in interface ExporterAnyTypeDao
Returns:
handles for all persistent objects.

getPersistentClass

public Class getPersistentClass()

setExcludedClassesForRetrievingAllObjects

public void setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects)


Copyright © 2003-2012 Atlassian. All Rights Reserved.