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

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.csp.core.bugtracker.domain.BugTracker>
          extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateBugTrackerDao
All Implemented Interfaces:
BugTrackerDao, EntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>, GenericDao<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.tm.service.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()
           
 org.squashtest.csp.core.bugtracker.domain.BugTracker findByName(String bugtrackerName)
          Given its name, returns a bugtracker
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findDistinctBugTrackersForProjects(List<Long> projectIds)
           
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(org.squashtest.tm.core.foundation.collection.PagingAndSorting 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

HibernateBugTrackerDao

public HibernateBugTrackerDao()
Method Detail

findSortedBugTrackers

public List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(org.squashtest.tm.core.foundation.collection.PagingAndSorting 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;

findByName

public org.squashtest.csp.core.bugtracker.domain.BugTracker findByName(String bugtrackerName)
Description copied from interface: BugTrackerDao
Given its name, returns a bugtracker

Specified by:
findByName in interface BugTrackerDao
Returns:


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