org.jasig.portlets.FeedbackPortlet.dao.hibernate
Class HibernateFeedbackStore

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.jasig.portlets.FeedbackPortlet.dao.hibernate.HibernateFeedbackStore
All Implemented Interfaces:
FeedbackStore, org.springframework.beans.factory.InitializingBean

public class HibernateFeedbackStore
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements FeedbackStore

HibernateFeedbackStore is a hibernate implementation of the FeedbackStore interface.

Author:
Jen Bourey

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateFeedbackStore()
           
 
Method Summary
 List<FeedbackItem> getFeedback()
          Retrieve all feedback in the data store.
 List<FeedbackItem> getFeedback(FeedbackQueryParameters params)
          Searches the feedback and pulls the results between (inclusively) the dates listed.
 long getFeedbackTotal(FeedbackQueryParameters params)
          Get the total number of feedback items for a given role and feedback type.
 OverallFeedbackStats getStats()
          Get statistics on the feedback data.
 Map<String,OverallFeedbackStats> getStatsByRole()
          Get statistics on the feedback data separated by user role.
 void storeFeedback(FeedbackItem feedback)
          Store a feedback item.
 
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

HibernateFeedbackStore

public HibernateFeedbackStore()
Method Detail

storeFeedback

public void storeFeedback(FeedbackItem feedback)
Description copied from interface: FeedbackStore
Store a feedback item.

Specified by:
storeFeedback in interface FeedbackStore

getFeedback

public List<FeedbackItem> getFeedback()
Description copied from interface: FeedbackStore
Retrieve all feedback in the data store.

Specified by:
getFeedback in interface FeedbackStore
Returns:
list of all feedback items

getFeedback

public List<FeedbackItem> getFeedback(FeedbackQueryParameters params)
Searches the feedback and pulls the results between (inclusively) the dates listed. One does not actually have to be less than the other

Specified by:
getFeedback in interface FeedbackStore
Parameters:
Date1 -
Date2 -
Returns:
list of items

getFeedbackTotal

public long getFeedbackTotal(FeedbackQueryParameters params)
Description copied from interface: FeedbackStore
Get the total number of feedback items for a given role and feedback type. If the role or feedback type are left null, the method will include items with any role or feedback type, respectively.

Specified by:
getFeedbackTotal in interface FeedbackStore
Returns:
number of matching feedback items

getStats

public OverallFeedbackStats getStats()
Description copied from interface: FeedbackStore
Get statistics on the feedback data.

Specified by:
getStats in interface FeedbackStore
Returns:
feedback statistics

getStatsByRole

public Map<String,OverallFeedbackStats> getStatsByRole()
Description copied from interface: FeedbackStore
Get statistics on the feedback data separated by user role.

Specified by:
getStatsByRole in interface FeedbackStore
Returns:
Map of feedback statistics, separated by user role


Copyright © 2012 Jasig. All Rights Reserved.