Class QueryUtils


  • public class QueryUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.List<E> getResultList​(javax.persistence.Query query)  
      static <E> java.util.List<E> getResultList​(javax.persistence.Query query, int limit)  
      static <E> E[] getResults​(javax.persistence.Query query)  
      static <E> E[] getResults​(javax.persistence.Query query, int limit)  
      static <E> E getSingleResult​(javax.persistence.Query query)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryUtils

        public QueryUtils()
    • Method Detail

      • getSingleResult

        public static <E> E getSingleResult​(javax.persistence.Query query)
      • getResultList

        public static <E> java.util.List<E> getResultList​(javax.persistence.Query query,
                                                          int limit)
      • getResultList

        public static <E> java.util.List<E> getResultList​(javax.persistence.Query query)
      • getResults

        public static <E> E[] getResults​(javax.persistence.Query query,
                                         int limit)
      • getResults

        public static <E> E[] getResults​(javax.persistence.Query query)