@Repository(value="squashtest.tm.repository.TestCaseLibraryNodeDao") public class HibernateTestCaseLibraryNodeDao extends HibernateEntityDao<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> implements TestCaseLibraryNodeDao
entityManager, entityType| Constructor and Description |
|---|
HibernateTestCaseLibraryNodeDao() |
| Modifier and Type | Method and Description |
|---|---|
int |
countSiblingsOfNode(long nodeId) |
org.squashtest.tm.domain.testcase.TestCaseLibraryNode |
findNodeByPath(String path) |
Long |
findNodeIdByPath(String path)
Same as
TestCaseLibraryNodeDao.findNodeIdsByPath(List), for one test case only. |
List<Long> |
findNodeIdsByPath(List<String> paths)
Given a list of paths of library NODE, return the ids of those nodes.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
findNodesByPath(List<String> path) |
List<Long> |
getParentsIds(long entityId)
Returns the ids path.
|
List<String> |
getParentsName(long entityId)
Returns the path of the given entity.
|
findAll, findAllByIds, findById, findDescendantIds, getIdPropertyNamecurrentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllByIds, findByIdpublic List<String> getParentsName(long entityId)
LibraryNodeDaogetParentsName in interface LibraryNodeDao<org.squashtest.tm.domain.testcase.TestCaseLibraryNode>public List<Long> getParentsIds(long entityId)
LibraryNodeDaogetParentsIds in interface LibraryNodeDao<org.squashtest.tm.domain.testcase.TestCaseLibraryNode>public List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> findNodesByPath(List<String> path)
findNodesByPath in interface TestCaseLibraryNodeDaopublic List<Long> findNodeIdsByPath(List<String> paths)
TestCaseLibraryNodeDao
Given a list of paths of library NODE, return the ids of those nodes. The path starts with /<projectname>.
Like in #getPathsAsString(List) a path is slash-separated '/', but this time names containing a '/' don't
need escaping (you may use escaped or unescaped names as will).
The order of the result is consistent with the order of the input. If an element could not be found (an invalid path for instance), the corresponding id in the result is NULL.
findNodeIdsByPath in interface LibraryNodeDao<org.squashtest.tm.domain.testcase.TestCaseLibraryNode>findNodeIdsByPath in interface TestCaseLibraryNodeDaopaths - The paths list. This method expect that the first path of the list is the project.public Long findNodeIdByPath(String path)
TestCaseLibraryNodeDao.findNodeIdsByPath(List), for one test case only.findNodeIdByPath in interface LibraryNodeDao<org.squashtest.tm.domain.testcase.TestCaseLibraryNode>findNodeIdByPath in interface TestCaseLibraryNodeDaonull when not foundLibraryNodeDao.findNodeIdByPath(java.lang.String)public org.squashtest.tm.domain.testcase.TestCaseLibraryNode findNodeByPath(String path)
findNodeByPath in interface TestCaseLibraryNodeDaonullorg.squashtest.tm.service.internal.repository.LibraryNodeDao#findNodeByPath(java.lang.String)public int countSiblingsOfNode(long nodeId)
countSiblingsOfNode in interface TestCaseLibraryNodeDaoCopyright © 2010–2017 Henix, henix.fr. All rights reserved.