edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3MessageDAO

java.lang.Object
  extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
      extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MessageDAO
All Implemented Interfaces:
GrouperDAO, MessageDAO

public class Hib3MessageDAO
extends Hib3DAO
implements MessageDAO

Data Access Object for messaging index

Version:
$Id$
Author:
mchyzer

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3MessageDAO()
           
 
Method Summary
 void delete(GrouperMessageHibernate grouperMessageHibernate)
          delete the object from the database
 Set<GrouperMessageHibernate> findByFromMemberId(String fromMemberId)
          find a list by the from member id
 GrouperMessageHibernate findById(String id, boolean exceptionIfNotFound)
           
 List<GrouperMessageHibernate> findByQueue(String queue, int pageSize)
          find messages by queue
 void saveOrUpdate(GrouperMessageHibernate grouperMessageHibernate)
          save the object to the database
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3MessageDAO

public Hib3MessageDAO()
Method Detail

findById

public GrouperMessageHibernate findById(String id,
                                        boolean exceptionIfNotFound)
Specified by:
findById in interface MessageDAO
Returns:
the message
See Also:
MessageDAO.findById(java.lang.String, boolean)

findByFromMemberId

public Set<GrouperMessageHibernate> findByFromMemberId(String fromMemberId)
Description copied from interface: MessageDAO
find a list by the from member id

Specified by:
findByFromMemberId in interface MessageDAO
Returns:
the set
See Also:
MessageDAO.findByFromMemberId(java.lang.String)

findByQueue

public List<GrouperMessageHibernate> findByQueue(String queue,
                                                 int pageSize)
Description copied from interface: MessageDAO
find messages by queue

Specified by:
findByQueue in interface MessageDAO
Returns:
collection of grouper messages
See Also:
MessageDAO.findByQueue(String, int)

saveOrUpdate

public void saveOrUpdate(GrouperMessageHibernate grouperMessageHibernate)
Description copied from interface: MessageDAO
save the object to the database

Specified by:
saveOrUpdate in interface MessageDAO
See Also:
MessageDAO.saveOrUpdate(GrouperMessageHibernate)

delete

public void delete(GrouperMessageHibernate grouperMessageHibernate)
Description copied from interface: MessageDAO
delete the object from the database

Specified by:
delete in interface MessageDAO
See Also:
MessageDAO.delete(GrouperMessageHibernate)