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
 List<com.atlassian.bonnie.Handle> findAllSearchableHandles()
          Gets handles for all Searchable objects.
 List<com.atlassian.bonnie.Searchable> findAllSearchables()
           
 Iterator<com.atlassian.bonnie.Searchable> findAllSearchablesIterator()
          Gets an iterator of all Searchable objects.
 List<com.atlassian.bonnie.Handle> findLatestSearchableHandles()
          Gets a handle for (@link Searchable} objects, only returning the latest version of objects that implement Versioned.
 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

findAllSearchableHandles

public 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 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

findAllSearchablesIterator

public Iterator<com.atlassian.bonnie.Searchable> findAllSearchablesIterator()
Description copied from interface: SearchableDao
Gets an iterator of all Searchable objects. Use this instead of SearchableDao.findAllSearchables()

Specified by:
findAllSearchablesIterator in interface SearchableDao
Returns:
an iterator of all Searchable objects.

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.

findAllSearchables

public List<com.atlassian.bonnie.Searchable> findAllSearchables()
Specified by:
findAllSearchables in interface SearchableDao


Copyright © 2003-2011 Atlassian. All Rights Reserved.