Package com.eurodyn.qlack.fuse.cm.util
Class JPAQueryUtil
java.lang.Object
com.eurodyn.qlack.fuse.cm.util.JPAQueryUtil
A Util class for the DocumentService class operations.
- Author:
- European Dynamics SA
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.querydsl.jpa.impl.JPAQuery<Node>
createJpaQueryForMultipleNames
(jakarta.persistence.EntityManager em, List<String> fileNames, String parentNodeID) Creates a new JPAQuery to search all the nodes that their name is contained in a list of strings.static com.querydsl.jpa.impl.JPAQuery<Node>
createJpaQueryForName
(jakarta.persistence.EntityManager em, String name, String parentNodeID) Creates a new JPAQuery to retrieve the nodes (folder/file) which have a required node attribute name.
-
Method Details
-
createJpaQueryForName
public static com.querydsl.jpa.impl.JPAQuery<Node> createJpaQueryForName(jakarta.persistence.EntityManager em, String name, String parentNodeID) Creates a new JPAQuery to retrieve the nodes (folder/file) which have a required node attribute name.- Parameters:
em
- the Entity Manager instancename
- the name to search forparentNodeID
- the id of the parent folder- Returns:
- the created query
-
createJpaQueryForMultipleNames
public static com.querydsl.jpa.impl.JPAQuery<Node> createJpaQueryForMultipleNames(jakarta.persistence.EntityManager em, List<String> fileNames, String parentNodeID) Creates a new JPAQuery to search all the nodes that their name is contained in a list of strings.- Parameters:
em
- the Entity Manager instancefileNames
- the names to search forparentNodeID
- the id of the parent folder- Returns:
- the created query
-