@Service(value="squashtest.tm.service.DatasetModificationService") public class DatasetModificationServiceImpl extends Object implements DatasetModificationService
| Constructor and Description |
|---|
DatasetModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cascadeDatasetsUpdate(long testCaseId)
This method updates the dataset of this test case, and every dataset upstream that inherits
from this test case, by creating the missing parameter values.
|
void |
changeName(long datasetId,
String newName) |
void |
changeParamValue(long datasetParamValueId,
String value) |
Collection<org.squashtest.tm.domain.testcase.Dataset> |
findAllForTestCase(long testCaseId) |
org.squashtest.tm.domain.testcase.Dataset |
findById(long datasetId) |
List<org.squashtest.tm.domain.testcase.Dataset> |
getAllDatasetByTestCase(long testCaseId) |
void |
persist(org.squashtest.tm.domain.testcase.Dataset dataset,
long testCaseId) |
void |
remove(org.squashtest.tm.domain.testcase.Dataset dataset) |
void |
removeAllByTestCaseIds(List<Long> testCaseIds) |
void |
removeById(long datasetId) |
public org.squashtest.tm.domain.testcase.Dataset findById(long datasetId)
findById in interface DatasetModificationServicepublic void persist(org.squashtest.tm.domain.testcase.Dataset dataset,
long testCaseId)
persist in interface DatasetModificationServicepublic Collection<org.squashtest.tm.domain.testcase.Dataset> findAllForTestCase(long testCaseId)
findAllForTestCase in interface DatasetModificationServicepublic void remove(org.squashtest.tm.domain.testcase.Dataset dataset)
remove in interface DatasetModificationServicepublic void removeById(long datasetId)
removeById in interface DatasetModificationServicepublic void removeAllByTestCaseIds(List<Long> testCaseIds)
removeAllByTestCaseIds in interface DatasetModificationServicepublic void changeName(long datasetId,
String newName)
changeName in interface DatasetModificationServicepublic void changeParamValue(long datasetParamValueId,
String value)
changeParamValue in interface DatasetModificationServicepublic List<org.squashtest.tm.domain.testcase.Dataset> getAllDatasetByTestCase(long testCaseId)
public void cascadeDatasetsUpdate(long testCaseId)
DatasetModificationServiceThis method updates the dataset of this test case, and every dataset upstream that inherits from this test case, by creating the missing parameter values.
However in its current state it won't delete the values from the datasets when some delegated parameters aren't accessible anymore (ie a call step was deleted, or is no more in parameter delegation mode).
cascadeDatasetsUpdate in interface DatasetModificationServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.