Examples of QueryParam


Examples of org.apache.wicket.examples.spring.common.QueryParam

  protected abstract ContactDao getContactDao();

  public final Iterator iterator(long first, long count)
  {
    QueryParam qp = new QueryParam(first, count, getSort());
    return getContactDao().find(qp);
  }
View Full Code Here

Examples of org.apache.wicket.spring.common.QueryParam

  protected abstract ContactDao getContactDao();

  public final Iterator iterator(int first, int count)
  {
    QueryParam qp = new QueryParam(first, count, getSort().getProperty(), getSort()
        .isAscending());
    return getContactDao().find(qp);
  }
View Full Code Here

Examples of org.conventionsframework.qualifier.QueryParam

            for (QueryParam queryParam : params.value()) {
                this.addParam(queryParam, q);
            }
        }
       
        QueryParam param = ic.getMethod().getAnnotation(QueryParam.class);
        if(param != null){
            this.addParam(param, q);
        }
        if(q != null){
            return q.getResultList();
View Full Code Here

Examples of org.cruxframework.crux.core.shared.rest.annotation.QueryParam

    if (defaultValue != null)
    {
      defaultVal = defaultValue.value();
    }

    QueryParam query;
    HeaderParam header;
    PathParam uriParam;
    CookieParam cookie;
    FormParam formParam;

    if ((query = ClassUtils.findAnnotation(annotations, QueryParam.class)) != null)
    {
      return createParameterExtractorForSimpleType(RestParameterType.query, injectTargetClass, type, query.value(), defaultVal);
    }
    else if ((header = ClassUtils.findAnnotation(annotations, HeaderParam.class)) != null)
    {
      return createParameterExtractorForSimpleType(RestParameterType.header, injectTargetClass, type, header.value(), defaultVal);
    }
View Full Code Here

Examples of org.cruxframework.crux.core.shared.rest.annotation.QueryParam

   * @param annotations
   * @return
   */
  protected static ValueInjector createParameterExtractorForComplexType(Class<?> injectTargetClass, Type type, Annotation[] annotations)
  {
    QueryParam query;
    HeaderParam header;
    PathParam uriParam;
    CookieParam cookie;
    FormParam formParam;

    if ((query = ClassUtils.findAnnotation(annotations, QueryParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.query, type, query.value());
    }
    else if ((header = ClassUtils.findAnnotation(annotations, HeaderParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.header, type, header.value());
    }
View Full Code Here

Examples of org.mule.module.db.internal.domain.param.QueryParam

                    throw new QueryTemplateParsingException("Invalid Mule expression: " + sqlText.substring(tokenStart));
                }

                tokenEnd++;
                String value = sqlText.substring(tokenStart, tokenEnd);
                QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), value);
                parameterList.add(inputParam);
                sqlToUse = sqlToUse + "?";
                tokenStart = tokenEnd;
            }
            else if (currentChar == ':')
            {
                String parameter;

                while (tokenEnd < sqlTextChars.length && !isParameterSeparator(sqlTextChars[tokenEnd]))
                {
                    tokenEnd++;
                }
                if (tokenEnd - tokenStart > 1)
                {
                    sqlToUse = sqlToUse + "?";
                    parameter = sqlText.substring(tokenStart + 1, tokenEnd);
                    QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), null, parameter);
                    parameterList.add(inputParam);
                }
                tokenStart = tokenEnd;
            }
            else if (isParamChar(currentChar))
            {
                QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), null);
                parameterList.add(inputParam);
                tokenStart++;
                sqlToUse = sqlToUse + currentChar;
            }
            else
View Full Code Here

Examples of org.qi4j.test.indexing.model.QueryParam

    @SuppressWarnings( "unchecked" )
    public void script30()
    {
        QueryBuilder<Person> qb = this.module.newQueryBuilder( Person.class );
        Person person = templateFor( Person.class );
        QueryParam queryParam = null; // oneOf( person.personalWebsite().get().queryParams() );
        Query<Person> query = unitOfWork.newQuery( qb.where( and( eq( queryParam.name(), "foo" ), eq( queryParam.value(), "bar" ) ) ) );
        System.out.println( "*** script30: " + query );
        verifyUnorderedResults( query, "Jack Doe" );
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.QueryParam

          type = 1;
        }
        sqlType = DSSqlTypes.getDefinedTypes().get(type);
      }
      List<Validator> validator = new ArrayList<Validator>();
      QueryParam queryParam = new QueryParam(pName, sqlType, DBConstants.DataServiceGenerator.IN,
          DBConstants.DataServiceGenerator.SCALAR, ordinal, null, validator);
      paramList.add(queryParam);
      ordinal++; // increase the ordinal value one by one
    }
    return paramList;
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.QueryParam

          throw new DataServiceFault(
              "A list of elements with simple types are expected at the in message of the operation '"
              + axisOperation.getName() + "'");
        }
      }
      queryParams.add(new QueryParam(
          prop.getName(),
          DBUtils.getSQLTypeFromXsdType(tmpType),
          DBConstants.QueryTypes.IN,
          prop.isArray() ? DBConstants.QueryParamTypes.ARRAY :
            DBConstants.QueryParamTypes.SCALAR,
View Full Code Here

Examples of wicket.contrib.activewidgets.examples.QueryParam

   * @return iterator capable of iterating over {first, first+count} contacts
   */
  public Iterator<Contact> iterator(int first, int count) {
    SortParam sp = getSort();
    if (queryParam == null) {
      queryParam = new QueryParam(first, count, sp.getProperty(), sp
          .isAscending());
    } else {
      queryParam.setFirst(first);
      queryParam.setCount(count);
      queryParam.setSort(sp.getProperty());
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.