|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.ikasan.framework.systemevent.dao.HibernateSystemEventDao
public class HibernateSystemEventDao
Hibernate implementation of SystemEventDao
Note that can be configured to housekeep either simply, or in batches.
| Constructor Summary | |
|---|---|
HibernateSystemEventDao()
Constructor |
|
HibernateSystemEventDao(boolean batchHousekeepDelete,
Integer housekeepingBatchSize)
Constructor |
|
| Method Summary | |
|---|---|
void |
deleteExpired()
Deletes all expired system events |
PagedSearchResult<SystemEvent> |
find(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
String subject,
String action,
Date timestampFrom,
Date timestampTo,
String actor)
Performs a paged search for SystemEvents restricting by criteria fields as supplied |
void |
save(SystemEvent systemEvent)
Persists a new system event |
| 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 |
|---|
public HibernateSystemEventDao(boolean batchHousekeepDelete,
Integer housekeepingBatchSize)
batchHousekeepDelete - - pass true if you want to use batch deletinghousekeepingBatchSize - - batch size, only respected if set to use batchingpublic HibernateSystemEventDao()
| Method Detail |
|---|
public void save(SystemEvent systemEvent)
SystemEventDao
save in interface SystemEventDao
public PagedSearchResult<SystemEvent> find(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
String subject,
String action,
Date timestampFrom,
Date timestampTo,
String actor)
SystemEventDaoSystemEvents restricting by criteria fields as supplied
find in interface SystemEventDaopageNo - - page control field - page no of results to returnpageSize - - page control field - size of pageorderBy - - page control - field to order byorderAscending - - page control field - true/false results in ascending order with respect to orderBy fieldsubject - - criteria field - filter for exact match on subjectaction - - criteria field - filter for exact match on actiontimestampFrom - - criteria field - filter for events with timestamp greater than this valuetimestampTo - - criteria field - filter for events with timestamp less than this valueactor - - criteria field - filter for exact match on actor
public void deleteExpired()
SystemEventDao
deleteExpired in interface SystemEventDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||