org.apache.deltaspike.data.api.QueryParam.value()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.apache.deltaspike.data.api.QueryParam.value方法的一些代码示例,展示了QueryParam.value的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryParam.value方法的具体详情如下:
包路径:org.apache.deltaspike.data.api.QueryParam
类名称:QueryParam
方法名:value

QueryParam.value介绍

暂无

代码示例

代码示例来源:origin: com.blazebit/blaze-persistence-integration-deltaspike-data-impl

public static Parameters create(Method method, Object[] parameters, EntityViewRepositoryMethod repositoryMethod) {
  int max = extractSizeRestriction(method, repositoryMethod);
  int first = DEFAULT_FIRST;
  List<Parameter> result = new ArrayList<Parameter>(parameters.length);
  int paramIndex = 1;
  Annotation[][] annotations = method.getParameterAnnotations();
  for (int i = 0; i < parameters.length; i++) {
    if (isParameter(method.getParameterAnnotations()[i])) {
      QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
      if (qpAnnotation != null) {
        result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
      } else {
        result.add(new NamedParameter("methodArg" + paramIndex++, parameters[i]));
      }
    } else {
      max = extractInt(parameters[i], annotations[i], MaxResults.class, max);
      first = extractInt(parameters[i], annotations[i], FirstResult.class, first);
    }
  }
  return new Parameters(result, max, first);
}

代码示例来源:origin: com.blazebit/blaze-persistence-integration-deltaspike-data-impl-1.7

QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
if (qpAnnotation != null) {
  result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
} else {
  result.add(new IndexedParameter(paramIndex++, parameters[i]));

代码示例来源:origin: com.blazebit/blaze-persistence-integration-deltaspike-data-impl-1.8

QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
if (qpAnnotation != null) {
  result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
} else {
  result.add(new IndexedParameter(paramIndex++, parameters[i]));

代码示例来源:origin: Blazebit/blaze-persistence

QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
if (qpAnnotation != null) {
  result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
} else {
  result.add(new IndexedParameter(paramIndex++, parameters[i]));

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-data-module-impl

public static Parameters create(Method method, Object[] parameters, RepositoryMethodMetadata repositoryMethod)
{
  int max = extractSizeRestriction(method, repositoryMethod);
  int first = DEFAULT_FIRST;
  List<Parameter> result = new ArrayList<Parameter>(parameters.length);
  int paramIndex = 1;
  Annotation[][] annotations = method.getParameterAnnotations();
  for (int i = 0; i < parameters.length; i++)
  {
    if (isParameter(method.getParameterAnnotations()[i]))
    {
      QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
      if (qpAnnotation != null)
      {
        result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
      }
      else
      {
        result.add(new IndexedParameter(paramIndex++, parameters[i]));
      }
    }
    else
    {
      max = extractInt(parameters[i], annotations[i], MaxResults.class, max);
      first = extractInt(parameters[i], annotations[i], FirstResult.class, first);
    }
  }
  return new Parameters(result, max, first);
}

代码示例来源:origin: Blazebit/blaze-persistence

QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
if (qpAnnotation != null) {
  result.add(new NamedParameter(qpAnnotation.value(), parameters[i]));
} else {
  result.add(new IndexedParameter(paramIndex++, parameters[i]));

相关文章

QueryParam类方法