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

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.HibernateSearchableDao
All Implemented Interfaces:
SearchableDao, org.springframework.beans.factory.InitializingBean

public class HibernateSearchableDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements SearchableDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateSearchableDao()
           
 
Method Summary
 java.util.List<com.atlassian.bonnie.Handle> findAllSearchableHandles()
          Gets handles for all Searchable objects.
 java.util.List<com.atlassian.bonnie.Handle> findLatestSearchableHandles()
          Gets a handle for (@link Searchable} objects, only returning the latest version of objects that implement Versioned.
 java.util.List<java.util.List<HibernateHandle>> getAllSearchablesGroupedByType()
          Returns a grouped list of all searchables available.
 int getCountOfLatestSearchables()
          Finds the count of all latest searchables.
 int getCountOfLatestSearchables(java.lang.Class clazz)
          Finds the count of the latest searchables that implement the specified hibernate entity class.
 java.util.List<HibernateHandle> getLatestSearchableHandles(java.lang.Class clazz)
          Finds a list of handles for the specified class.
 java.util.List<java.util.List<HibernateHandle>> getLatestSearchableHandlesGroupedByType()
          Returns a list of latest searchable handles grouped by hibernate entity class.
 int getSearchableCount()
          Gets the total number of Searchables.
 
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

HibernateSearchableDao

public HibernateSearchableDao()
Method Detail

getLatestSearchableHandlesGroupedByType

public java.util.List<java.util.List<HibernateHandle>> getLatestSearchableHandlesGroupedByType()
Description copied from interface: SearchableDao
Returns a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.

Specified by:
getLatestSearchableHandlesGroupedByType in interface SearchableDao
Returns:
a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.

getLatestSearchableHandles

public java.util.List<HibernateHandle> getLatestSearchableHandles(java.lang.Class clazz)
Description copied from interface: SearchableDao
Finds a list of handles for the specified class.

Specified by:
getLatestSearchableHandles in interface SearchableDao
Parameters:
clazz - a hibernate entity class

getCountOfLatestSearchables

public int getCountOfLatestSearchables()
Description copied from interface: SearchableDao
Finds the count of all latest searchables.

Specified by:
getCountOfLatestSearchables in interface SearchableDao

getCountOfLatestSearchables

public int getCountOfLatestSearchables(java.lang.Class clazz)
Description copied from interface: SearchableDao
Finds the count of the latest searchables that implement the specified hibernate entity class.

Specified by:
getCountOfLatestSearchables in interface SearchableDao
Parameters:
clazz - a hibernate entity class

getSearchableCount

public int getSearchableCount()
Description copied from interface: SearchableDao
Gets the total number of Searchables.

Specified by:
getSearchableCount in interface SearchableDao
Returns:
the total number of Searchables.

findAllSearchableHandles

public java.util.List<com.atlassian.bonnie.Handle> findAllSearchableHandles()
Description copied from interface: SearchableDao
Gets handles for all Searchable objects.

Specified by:
findAllSearchableHandles in interface SearchableDao
Returns:
a List of Handles.

findLatestSearchableHandles

public java.util.List<com.atlassian.bonnie.Handle> findLatestSearchableHandles()
Description copied from interface: SearchableDao
Gets a handle for (@link Searchable} objects, only returning the latest version of objects that implement Versioned.

Specified by:
findLatestSearchableHandles in interface SearchableDao
Returns:
a List of Handles

getAllSearchablesGroupedByType

public java.util.List<java.util.List<HibernateHandle>> getAllSearchablesGroupedByType()
Description copied from interface: SearchableDao
Returns a grouped list of all searchables available. Each list is guaranteed to only contain one type of handles.

Specified by:
getAllSearchablesGroupedByType in interface SearchableDao
Returns:
a list of lists of handles. Grouped by handle type.


Copyright © 2003-2014 Atlassian. All Rights Reserved.