bucket.search.persistence.dao.hibernate
Class HibernateIndexQueueEntryDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by bucket.search.persistence.dao.hibernate.HibernateIndexQueueEntryDao
All Implemented Interfaces:
ObjectDao, IndexQueueEntryDao, org.springframework.beans.factory.InitializingBean

public class HibernateIndexQueueEntryDao
extends HibernateObjectDao
implements IndexQueueEntryDao

The hibernate dao instance used for working with the index queue entries.


Field Summary
static org.apache.log4j.Category LOG
          Deprecated. since 3.1 should not be using public loggers, plus use of Category is deprecated
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateIndexQueueEntryDao()
           
 
Method Summary
 void deleteAll()
          Remove all entries from the queue.
 void deleteAllBefore(Date since)
          Remove all entries from the queue that where created before the specified date.
 List<IndexQueueEntry> getNewEntries(Date since)
           
 int getNewEntryCount(Date since)
           
 Class getPersistentClass()
           
 void saveOrUpdate(IndexQueueEntry entry)
           
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData
 
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
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Field Detail

LOG

@Deprecated
public static final org.apache.log4j.Category LOG
Deprecated. since 3.1 should not be using public loggers, plus use of Category is deprecated
Constructor Detail

HibernateIndexQueueEntryDao

public HibernateIndexQueueEntryDao()
Method Detail

getPersistentClass

public Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao

saveOrUpdate

public void saveOrUpdate(IndexQueueEntry entry)
Specified by:
saveOrUpdate in interface IndexQueueEntryDao

getNewEntries

public List<IndexQueueEntry> getNewEntries(Date since)
Specified by:
getNewEntries in interface IndexQueueEntryDao

getNewEntryCount

public int getNewEntryCount(Date since)
Specified by:
getNewEntryCount in interface IndexQueueEntryDao

deleteAllBefore

public void deleteAllBefore(Date since)
Description copied from interface: IndexQueueEntryDao
Remove all entries from the queue that where created before the specified date.

Specified by:
deleteAllBefore in interface IndexQueueEntryDao

deleteAll

public void deleteAll()
Description copied from interface: IndexQueueEntryDao
Remove all entries from the queue.

Specified by:
deleteAll in interface IndexQueueEntryDao


Copyright © 2003-2011 Atlassian. All Rights Reserved.