public class

HibernateAnyTypeDao

extends HibernateDaoSupport
implements AnyTypeDao
java.lang.Object
   ↳ org.springframework.dao.support.DaoSupport
     ↳ org.springframework.orm.hibernate.support.HibernateDaoSupport
       ↳ com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao

Summary

[Expand]
Inherited Fields
From class org.springframework.dao.support.DaoSupport
Public Constructors
HibernateAnyTypeDao()
Public Methods
List findAllPersistentObjects()
Finds all persistent objects.
List<Handle> findAllPersistentObjectsHandles()
Finds handles for all persistent objects.
Object findByHandle(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)
[Expand]
Inherited Methods
From class org.springframework.orm.hibernate.support.HibernateDaoSupport
From class org.springframework.dao.support.DaoSupport
From class java.lang.Object
From interface com.atlassian.confluence.core.persistence.AnyTypeDao
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public HibernateAnyTypeDao ()

Public Methods

public List findAllPersistentObjects ()

Finds all persistent objects.

Returns
  • all persistent objects.

public List<Handle> findAllPersistentObjectsHandles ()

Finds handles for all persistent objects.

Returns
  • handles for all persistent objects.

public Object findByHandle (Handle handle)

Find a persistent object by its handle.

Parameters
handle the handle
Returns
  • a persistent object by its handle.

public List findByIdsAndClassName (List<Long> ids, String className)

Find a list of objects from the same persistent class.

Parameters
className the persistent class's fully qualified class name.

public Object getByIdAndType (long id, Class type)

Find a persistent object by its id and type.

Returns
  • a persistent object by its handle.

public Class getPersistentClass ()

public void setExcludedClassesForRetrievingAllObjects (Set excludedClassesForRetrievingAllObjects)