org.ikasan.framework.error.dao
Class HibernateErrorOccurrenceDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.ikasan.framework.error.dao.HibernateErrorOccurrenceDao
All Implemented Interfaces:
ErrorOccurrenceDao, org.springframework.beans.factory.InitializingBean

public class HibernateErrorOccurrenceDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ErrorOccurrenceDao

Hibernate implementation of the DAO for the ErrorOccurence object

Author:
Ikasan Development Team

Constructor Summary
HibernateErrorOccurrenceDao()
           
 
Method Summary
 void deleteAllExpired()
          Deletes all ErrorOccurrences that have surpassed their expiry
 PagedSearchResult<ErrorOccurrence> findErrorOccurrences(int pageNo, int pageSize, String orderBy, boolean orderAscending, String moduleName, String flowName)
          Perform a paged search for ErrorOccurrences
 ErrorOccurrence getErrorOccurrence(Long id)
          Retrieves an ErrorOccurrence by ids
 List<ErrorOccurrence> getErrorOccurrences(String eventId)
          Returns all ErrorOccurrences with the specified eventId
 void save(ErrorOccurrence errorOccurrence)
          Persist an ErrorOccurrence
 
Methods inherited from class org.springframework.orm.hibernate3.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

HibernateErrorOccurrenceDao

public HibernateErrorOccurrenceDao()
Method Detail

save

public void save(ErrorOccurrence errorOccurrence)
Description copied from interface: ErrorOccurrenceDao
Persist an ErrorOccurrence

Specified by:
save in interface ErrorOccurrenceDao

getErrorOccurrence

public ErrorOccurrence getErrorOccurrence(Long id)
Description copied from interface: ErrorOccurrenceDao
Retrieves an ErrorOccurrence by ids

Specified by:
getErrorOccurrence in interface ErrorOccurrenceDao
Returns:
specified ErrorOccurrence

findErrorOccurrences

public PagedSearchResult<ErrorOccurrence> findErrorOccurrences(int pageNo,
                                                               int pageSize,
                                                               String orderBy,
                                                               boolean orderAscending,
                                                               String moduleName,
                                                               String flowName)
Description copied from interface: ErrorOccurrenceDao
Perform a paged search for ErrorOccurrences

Specified by:
findErrorOccurrences in interface ErrorOccurrenceDao
Returns:
PagedSearchResult

deleteAllExpired

public void deleteAllExpired()
Description copied from interface: ErrorOccurrenceDao
Deletes all ErrorOccurrences that have surpassed their expiry

Specified by:
deleteAllExpired in interface ErrorOccurrenceDao

getErrorOccurrences

public List<ErrorOccurrence> getErrorOccurrences(String eventId)
Description copied from interface: ErrorOccurrenceDao
Returns all ErrorOccurrences with the specified eventId

Specified by:
getErrorOccurrences in interface ErrorOccurrenceDao
Returns:
List of ErrorOccurrence


Copyright © 2007-2012 Ikasan. All Rights Reserved.