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, org.springframework.beans.factory.InitializingBean

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


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

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

findAllPersistentObjectsHandles

public java.util.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.

getPersistentClass

public java.lang.Class getPersistentClass()

setExcludedClassesForRetrievingAllObjects

public void setExcludedClassesForRetrievingAllObjects(java.util.Set excludedClassesForRetrievingAllObjects)


Copyright © 2003-2011 Atlassian. All Rights Reserved.