org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateBugTrackerDao

java.lang.Object
  extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateBugTrackerDao
All Implemented Interfaces:
BugTrackerDao, EntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>

@Repository
public class HibernateBugTrackerDao
extends HibernateEntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>
implements BugTrackerDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateBugTrackerDao()
           
 
Method Summary
 void checkNameAvailability(String name)
          checks if there is a Bugtracker of the same name in the database.
 long countBugTrackers()
           
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findDistinctBugTrackersForProjects(List<Long> projectIds)
           
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(CollectionSorting filter)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAll, findAllByIds, findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, 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.csp.tm.internal.repository.EntityDao
findAll, findAllByIds, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateBugTrackerDao

public HibernateBugTrackerDao()
Method Detail

findSortedBugTrackers

public List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(CollectionSorting filter)
Specified by:
findSortedBugTrackers in interface BugTrackerDao
Returns:
a page of bugtrackers according to the filter
See Also:
BugTrackerEntityDao#findSortedBugTrackers(String)

countBugTrackers

public long countBugTrackers()
Specified by:
countBugTrackers in interface BugTrackerDao
Returns:
number of all bugtrackers in squash database
See Also:
BugTrackerDao#countBugTrackers(String)

checkNameAvailability

public void checkNameAvailability(String name)
Description copied from interface: BugTrackerDao
checks if there is a Bugtracker of the same name in the database.
If so, raises a BugTrackerNameAlreadyExistsException

Specified by:
checkNameAvailability in interface BugTrackerDao
See Also:
BugTrackerDao.checkNameAvailability(String)

findDistinctBugTrackersForProjects

public List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findDistinctBugTrackersForProjects(List<Long> projectIds)
Specified by:
findDistinctBugTrackersForProjects in interface BugTrackerDao
Returns:
the list of distinct BugTrackers concerned by the given projects;


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