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

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.HibernateSubscriptionDao
All Implemented Interfaces:
SubscriptionDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateSubscriptionDao
extends HibernateObjectDao
implements SubscriptionDao

Implementation of SubscriptionDao 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
HibernateSubscriptionDao()
          Creates a new instance of HibernateSubscriptionDao
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 Subscription getSubscription(long id)
          Retrieve subscription corresponding to identifier
 java.util.List getSubscriptionsForUser(java.lang.String subscriberId)
          Retrieve subscriptions corresponding to a subscriber
 
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

HibernateSubscriptionDao

public HibernateSubscriptionDao()
Creates a new instance of HibernateSubscriptionDao

Method Detail

getSubscription

public Subscription getSubscription(long id)
Retrieve subscription corresponding to identifier

Specified by:
getSubscription in interface SubscriptionDao
Parameters:
id - The unique identifier of subcription to retrieve
Returns:
The corresponding subscription or null if no one match

getSubscriptionsForUser

public java.util.List getSubscriptionsForUser(java.lang.String subscriberId)
Retrieve subscriptions corresponding to a subscriber

Specified by:
getSubscriptionsForUser in interface SubscriptionDao
Parameters:
subscriberId - Unique identifier of user having subscriptions
Returns:
A list of org.figure8.join.businessobjects.reporting.Subscription

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.Subscription class


Copyright © 2005-2008 Join. All Rights Reserved.