org.figure8.join.businessobjects.reporting.persistence
Class HibernateMailingListDao

java.lang.Object
  extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
      extended by org.figure8.join.core.persistence.HibernateObjectDao
          extended by org.figure8.join.businessobjects.reporting.persistence.HibernateMailingListDao
All Implemented Interfaces:
MailingListDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateMailingListDao
extends HibernateObjectDao
implements MailingListDao

Implementation of MailingListDao using Hibernate ORM system.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateMailingListDao()
          Creates a new instance of HibernateMailingListDao
 
Method Summary
 MailingList getMailingList(java.lang.String name)
          Retrieve a mailing list using its name
 java.util.List getMailingListsForEvent(Event event)
          Retrieve the mailing lists defined for given event
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getById, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Constructor Detail

HibernateMailingListDao

public HibernateMailingListDao()
Creates a new instance of HibernateMailingListDao

Method Detail

getMailingList

public MailingList getMailingList(java.lang.String name)
Retrieve a mailing list using its name

Specified by:
getMailingList in interface MailingListDao
Parameters:
name - The name of list to retrieve
Returns:
The mailing list corresponding or null if no list has specfied name

getMailingListsForEvent

public java.util.List getMailingListsForEvent(Event event)
Retrieve the mailing lists defined for given event

Specified by:
getMailingListsForEvent in interface MailingListDao
Parameters:
event - The event to get mailing lists for
Returns:
A list of MailingList objects for event

getPersistentClass

public java.lang.Class getPersistentClass()
Description copied from interface: ObjectDao
Get the persistent class associated to this Dao.

Specified by:
getPersistentClass in interface ObjectDao
Returns:
The org.figure8.join.businessobjects.reporting.MailingList class


Copyright © 2005-2008 Join. All Rights Reserved.