Class JPAQueryUtil

java.lang.Object
com.eurodyn.qlack.fuse.cm.util.JPAQueryUtil

public class JPAQueryUtil extends Object
A Util class for the DocumentService class operations.
Author:
European Dynamics SA
  • 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 instance
      name - the name to search for
      parentNodeID - 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 instance
      fileNames - the names to search for
      parentNodeID - the id of the parent folder
      Returns:
      the created query