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

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.testcase.Dataset>
          extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDatasetDao
All Implemented Interfaces:
CustomDatasetDao, EntityDao<org.squashtest.tm.domain.testcase.Dataset>, GenericDao<org.squashtest.tm.domain.testcase.Dataset>

@Repository(value="CustomDatasetDao")
public class HibernateDatasetDao
extends HibernateEntityDao<org.squashtest.tm.domain.testcase.Dataset>
implements CustomDatasetDao


Field Summary
 
Fields inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateDatasetDao()
           
 
Method Summary
 List<org.squashtest.tm.domain.testcase.Dataset> findAllDatasetsByTestCase(Long testCaseId)
          Will return all datasets for the given test case.
 List<org.squashtest.tm.domain.testcase.Dataset> findAllDatasetsByTestCases(List<Long> testCaseIds)
          Will return all datasets found for the given test cases ids.
 org.squashtest.tm.domain.testcase.Dataset findDatasetByTestCaseAndByName(Long testCaseId, String name)
          Will return the dataset matching the given name and belonging to the test case matchine the given id.
 void removeDatasetFromIterationTestPlanItems(Long datasetId)
          TODO
 
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.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Constructor Detail

HibernateDatasetDao

public HibernateDatasetDao()
Method Detail

findAllDatasetsByTestCase

public List<org.squashtest.tm.domain.testcase.Dataset> findAllDatasetsByTestCase(Long testCaseId)
Description copied from interface: CustomDatasetDao
Will return all datasets for the given test case.

Specified by:
findAllDatasetsByTestCase in interface CustomDatasetDao
Returns:
the list of all test cases's datasets.

findAllDatasetsByTestCases

public List<org.squashtest.tm.domain.testcase.Dataset> findAllDatasetsByTestCases(List<Long> testCaseIds)
Description copied from interface: CustomDatasetDao
Will return all datasets found for the given test cases ids.

Specified by:
findAllDatasetsByTestCases in interface CustomDatasetDao
Parameters:
testCaseIds - : the concerned test cases ids.
Returns:
the list of all given test cases's datasets

findDatasetByTestCaseAndByName

public org.squashtest.tm.domain.testcase.Dataset findDatasetByTestCaseAndByName(Long testCaseId,
                                                                                String name)
Description copied from interface: CustomDatasetDao
Will return the dataset matching the given name and belonging to the test case matchine the given id.

Specified by:
findDatasetByTestCaseAndByName in interface CustomDatasetDao
Parameters:
testCaseId - : the id of the concerned test case
name - : the name of the dataset to find
Returns:
the test case's dataset matching the given id or null

removeDatasetFromIterationTestPlanItems

public void removeDatasetFromIterationTestPlanItems(Long datasetId)
Description copied from interface: CustomDatasetDao
TODO

Specified by:
removeDatasetFromIterationTestPlanItems in interface CustomDatasetDao


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