Examples of sqlQuery()


Examples of net.sf.autodao.Finder.sqlQuery()

      throw new SpecificationViolationException("Method is neither a finder method nor is implemented in AutoDAO", method);

    final int sum
        = (hasText(f.query()) ? 1 : 0)
        + (hasText(f.queryName()) ? 1 : 0)
        + (hasText(f.sqlQuery()) ? 1 : 0)
        + (hasText(f.sqlQueryName()) ? 1 : 0);
    if (sum < 1)
      throw new SpecificationViolationException("You need to specify at least one of: query, queryName, sqlQuery, sqlQueryName", method);

    if (sum > 1)
View Full Code Here

Examples of net.sf.autodao.Finder.sqlQuery()

  public static <T> T visitQuery(@NotNull final Method method, @NotNull final QueryVisitor<T> visitor) {
    final Finder finder = AnnotationUtils.findAnnotation(method, Finder.class);
    if (StringUtils.hasText(finder.query())) {
      return visitor.visitQuery(finder.query());
    } else if (StringUtils.hasText(finder.sqlQuery())) {
      return visitor.visitSQLQuery(finder.sqlQuery());
    } else if (StringUtils.hasText(finder.sqlQueryName())) {
      return visitor.visitSQLNamedQuery(finder.sqlQueryName());
    } else {
      Assert.hasText(finder.queryName());
View Full Code Here

Examples of net.sf.autodao.Finder.sqlQuery()

  public static <T> T visitQuery(@NotNull final Method method, @NotNull final QueryVisitor<T> visitor) {
    final Finder finder = AnnotationUtils.findAnnotation(method, Finder.class);
    if (StringUtils.hasText(finder.query())) {
      return visitor.visitQuery(finder.query());
    } else if (StringUtils.hasText(finder.sqlQuery())) {
      return visitor.visitSQLQuery(finder.sqlQuery());
    } else if (StringUtils.hasText(finder.sqlQueryName())) {
      return visitor.visitSQLNamedQuery(finder.sqlQueryName());
    } else {
      Assert.hasText(finder.queryName());
      return visitor.visitNamedQuery(finder.queryName());
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.