Examples of FIND

  • org.jrest4guice.dao.annotations.Find
  • org.mockito.internal.matchers.Find

  • Examples of org.jrest4guice.dao.annotations.Find

      @Override
      public Object execute(Object[] parameters) {
        Query query = getQuery();
        QueryParameter queryPara = new QueryParameter(parameters, method.getParameterAnnotations());
        fittingQuery(query, queryPara);
        Find find = getAnnotation();
        if (!find.resultClass().equals(void.class) && !find.nativeQuery())
          return toProjectionalList(find.resultClass(), query.getResultList());
        return query.getResultList();
      }
    View Full Code Here

    Examples of org.jrest4guice.dao.annotations.Find

          query.setMaxResults(para.getMaxResults());
        }
      }
     
      private Query getQuery() {
        Find find = getAnnotation();
        EntityManager em = getContext().getEntityManager();
        if (StringUtils.isNotBlank(find.namedQuery()))
          return em.createNamedQuery(find.namedQuery());
        if (find.nativeQuery()) {
          if (find.resultClass().equals(void.class))
            return em.createNativeQuery(find.query());
          else
            return em.createNativeQuery(find.query(), find.resultClass());
        } else
          return em.createQuery(find.query());
      }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

         * @param regex
         *            the regular expression.
         * @return <code>null</code>.
         */
        public static String find(String regex) {
            return reportMatcher(new Find(regex)).<String>returnNull();
        }
    View Full Code Here

    Examples of org.mockito.internal.matchers.Find

        public static Matcher<String> matches(String regex) {
            return (Matcher<String>)((Object)new Matches(regex));
        }

        public static Matcher<String> find(String regex) {
            return new Find(regex);
        }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.