org.squashtest.tm.service.internal.repository.hibernate
Class HibernateTeamDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao<org.squashtest.tm.domain.users.Team>
          extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateTeamDao
All Implemented Interfaces:
CustomTeamDao, EntityDao<org.squashtest.tm.domain.users.Team>, GenericDao<org.squashtest.tm.domain.users.Team>

@Repository(value="CustomTeamDao")
public class HibernateTeamDao
extends HibernateEntityDao<org.squashtest.tm.domain.users.Team>
implements CustomTeamDao


Field Summary
 
Fields inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateTeamDao()
           
 
Method Summary
 List<org.squashtest.tm.domain.users.Team> findSortedAssociatedTeams(long userId, org.squashtest.tm.core.foundation.collection.PagingAndSorting paging, org.squashtest.tm.core.foundation.collection.Filtering filtering)
          Will find Teams associated to concerned user organized with the given pagin and filtering params.
 List<org.squashtest.tm.domain.users.Team> findSortedTeams(org.squashtest.tm.core.foundation.collection.PagingAndSorting paging, org.squashtest.tm.core.foundation.collection.Filtering filter)
           
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao
collectFromMapList, collectFromMapList, collectFromMapListToSet, collectFromMapListToSet, findAll, findAllByIds, findById, findDescendantIds, findSorted, findSorted, getIdPropertyName
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
clearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Constructor Detail

HibernateTeamDao

public HibernateTeamDao()
Method Detail

findSortedTeams

public List<org.squashtest.tm.domain.users.Team> findSortedTeams(org.squashtest.tm.core.foundation.collection.PagingAndSorting paging,
                                                                 org.squashtest.tm.core.foundation.collection.Filtering filter)
Specified by:
findSortedTeams in interface CustomTeamDao
Returns:

findSortedAssociatedTeams

public List<org.squashtest.tm.domain.users.Team> findSortedAssociatedTeams(long userId,
                                                                           org.squashtest.tm.core.foundation.collection.PagingAndSorting paging,
                                                                           org.squashtest.tm.core.foundation.collection.Filtering filtering)
Description copied from interface: CustomTeamDao
Will find Teams associated to concerned user organized with the given pagin and filtering params.

Specified by:
findSortedAssociatedTeams in interface CustomTeamDao
Parameters:
userId - : id of the concerned User
paging - : PagingAndSorting according to which result will be organized.
filtering - : Filtering according to which result will be organized.
Returns:
paged and filtered list of Teams associated to concerned User
See Also:
CustomTeamDao.findSortedAssociatedTeams(long, PagingAndSorting, Filtering)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.