org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernateDocumentDAO

Package class diagram package HibernateDocumentDAO
java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<Document,java.lang.Long>
              extended by org.directdemocracyportal.democracy.service.dao.hibernate.HibernateDocumentDAO
All Implemented Interfaces:
DocumentDAO, GenericDAO<Document,java.lang.Long>, org.springframework.beans.factory.InitializingBean

@Transactional(propagation=MANDATORY)
public class HibernateDocumentDAO
extends GenericHibernateDAO<Document,java.lang.Long>
implements DocumentDAO

The Class HibernateDocumentDAO.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
Constructor and Description
HibernateDocumentDAO()
          Instantiates a new hibernate document dao.
 
Method Summary
Modifier and Type Method and Description
 java.util.List<Resolution> getDecidedResolutionsInDateOrder()
          Gets the decided resolutions in date order.
 java.util.List<Vote> getVotesForPerson(Person person)
          Gets the votes for person.
 
Methods inherited from class org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO
delete, getAll, load, save
 
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
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Constructor Detail

HibernateDocumentDAO

public HibernateDocumentDAO()
Instantiates a new hibernate document dao.

Method Detail

getDecidedResolutionsInDateOrder

public java.util.List<Resolution> getDecidedResolutionsInDateOrder()
                                                            throws org.springframework.dao.DataAccessException
Description copied from interface: DocumentDAO
Gets the decided resolutions in date order.

Specified by:
getDecidedResolutionsInDateOrder in interface DocumentDAO
Returns:
the decided resolutions in date order
Throws:
org.springframework.dao.DataAccessException - the data access exception

getVotesForPerson

public java.util.List<Vote> getVotesForPerson(Person person)
Description copied from interface: DocumentDAO
Gets the votes for person.

Specified by:
getVotesForPerson in interface DocumentDAO
Parameters:
person - the person
Returns:
the votes for person


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.