org.ikasan.framework.payload.dao
Class HibernateDatabasePayloadDao

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

public class HibernateDatabasePayloadDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements DatabasePayloadDao

Hibernate implementation of DatabasePayloadDao

Author:
Ikasan Development Team

Field Summary
protected static String DATABASE_PAYLOAD_ID_QUERY
          Id query for Unconsumed Database Payload
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateDatabasePayloadDao()
          Constructor
 
Method Summary
 void delete(DatabasePayload databaseEvent)
          Deletes a DatabsePayload from persistent storage
 List<DatabasePayload> findUnconsumed()
          Retrieves a List of unconsumed DatabsePayloads
 List<Long> findUnconsumedIds()
          Retrieves a List of Id's for unconsumed Database Payloads
 DatabasePayload getDatabasePayload(Long id)
          Retrieves a DatabasePayload by Id
 void save(DatabasePayload databaseEvent)
          Persists a DatabsePayload
 void setMaxResults(int maxResults)
          Set the maxim of result objects to retrieve from db
 
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
 

Field Detail

DATABASE_PAYLOAD_ID_QUERY

protected static final String DATABASE_PAYLOAD_ID_QUERY
Id query for Unconsumed Database Payload

See Also:
Constant Field Values
Constructor Detail

HibernateDatabasePayloadDao

public HibernateDatabasePayloadDao()
Constructor

Method Detail

delete

public void delete(DatabasePayload databaseEvent)
Description copied from interface: DatabasePayloadDao
Deletes a DatabsePayload from persistent storage

Specified by:
delete in interface DatabasePayloadDao
Parameters:
databaseEvent - to delete

findUnconsumed

public List<DatabasePayload> findUnconsumed()
Description copied from interface: DatabasePayloadDao
Retrieves a List of unconsumed DatabsePayloads

Specified by:
findUnconsumed in interface DatabasePayloadDao
Returns:
List of unconsumed DatabsePayloads

save

public void save(DatabasePayload databaseEvent)
Description copied from interface: DatabasePayloadDao
Persists a DatabsePayload

Specified by:
save in interface DatabasePayloadDao
Parameters:
databaseEvent - to persist

findUnconsumedIds

public List<Long> findUnconsumedIds()
Description copied from interface: DatabasePayloadDao
Retrieves a List of Id's for unconsumed Database Payloads

Specified by:
findUnconsumedIds in interface DatabasePayloadDao
Returns:
List of Id's

getDatabasePayload

public DatabasePayload getDatabasePayload(Long id)
Description copied from interface: DatabasePayloadDao
Retrieves a DatabasePayload by Id

Specified by:
getDatabasePayload in interface DatabasePayloadDao
Parameters:
id - Id of the payload
Returns:
DatabasePayload

setMaxResults

public void setMaxResults(int maxResults)
Set the maxim of result objects to retrieve from db

Parameters:
maxResults - integer value of max results


Copyright © 2007-2012 Ikasan. All Rights Reserved.