org.chorem.pollen.business.persistence
Class PollDAOImpl<E extends Poll>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.chorem.pollen.business.persistence.PollDAOAbstract<E>
          extended by org.chorem.pollen.business.persistence.PollDAOImpl<E>
All Implemented Interfaces:
org.nuiton.topia.persistence.TopiaDAO<E>
Direct Known Subclasses:
PollDAO

public class PollDAOImpl<E extends Poll>
extends PollDAOAbstract<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
PollDAOImpl()
           
 
Method Summary
protected  List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> findAllWithPollAccounts(org.nuiton.topia.framework.TopiaQuery query, org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
           
 List<E> getCreatedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager, UserAccount user)
           
 List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> getInvitedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager, UserAccount userToUse)
           
 List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> getParticipatedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager, UserAccount userToUse)
           
 List<E> getPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
           
 List<E> getRunningPolls(boolean withEndDate)
           
 
Methods inherited from class org.chorem.pollen.business.persistence.PollDAOAbstract
delete, findAllByAnonymous, findAllByAnonymousVoteAllowed, findAllByBeginChoiceDate, findAllByBeginDate, findAllByChoiceAddAllowed, findAllByChoiceType, findAllByClosed, findAllByContinuousResults, findAllByCreator, findAllByDescription, findAllByEndChoiceDate, findAllByEndDate, findAllByMaxChoiceNb, findAllByPollId, findAllByPollType, findAllByPublicResults, findAllByTitle, findAllByVoteCountingType, findAllContainsChoice, findAllContainsComment, findAllContainsPreventRule, findAllContainsResult, findAllContainsVote, findAllContainsVotingList, findAllUsages, findByAnonymous, findByAnonymousVoteAllowed, findByBeginChoiceDate, findByBeginDate, findByChoiceAddAllowed, findByChoiceType, findByClosed, findByContinuousResults, findByCreator, findByDescription, findByEndChoiceDate, findByEndDate, findByMaxChoiceNb, findByPollId, findByPollType, findByPublicResults, findByTitle, findByVoteCountingType, findContainsChoice, findContainsComment, findContainsPreventRule, findContainsResult, findContainsVote, findContainsVotingList, findUsages, getEntityClass, getTopiaEntityEnum
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, count, countByQuery, create, create, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContains, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContains, getContext, getId, getId, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollDAOImpl

public PollDAOImpl()
Method Detail

getPolls

public List<E> getPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
                              throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException

getCreatedPolls

public List<E> getCreatedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager,
                               UserAccount user)
                                     throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException

getInvitedPolls

public List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> getInvitedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager,
                                                                                   UserAccount userToUse)
                                                                            throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException

getParticipatedPolls

public List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> getParticipatedPolls(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager,
                                                                                        UserAccount userToUse)
                                                                                 throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException

findAllWithPollAccounts

protected List<org.apache.commons.lang3.tuple.Pair<Poll,PollAccount>> findAllWithPollAccounts(org.nuiton.topia.framework.TopiaQuery query,
                                                                                              org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
                                                                                       throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException

getRunningPolls

public List<E> getRunningPolls(boolean withEndDate)
                                     throws org.nuiton.topia.TopiaException
Throws:
org.nuiton.topia.TopiaException


Copyright © 2009-2012 CodeLutin. All Rights Reserved.