本文整理了Java中org.apache.deltaspike.data.api.QueryParam
类的一些代码示例,展示了QueryParam
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryParam
类的具体详情如下:
包路径:org.apache.deltaspike.data.api.QueryParam
类名称:QueryParam
暂无
代码示例来源:origin: com.github.dadrus.jpa-unit/jpa-unit-test-model
@Query("SELECT d FROM Depositor d WHERE d.name=:name")
List<Depositor> findByName(@QueryParam("name") String name);
}
代码示例来源: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: 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: 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: 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]));
内容来源于网络,如有侵权,请联系作者删除!