if (searchOption.getSearchExpression().isSearchBinary()) { throw new CDSRuntimeException(CDSRuntimeException.MessageKeys.BINARY_SEARCH_NOT_SUPPORTED, "Binary search is not currently supported.", HttpStatusCode.NOT_IMPLEMENTED.getStatusCode(), Locale.ENGLISH); if (searchOption.getSearchExpression().isSearchTerm()) { searchTerm = searchOption.getSearchExpression().asSearchTerm().getSearchTerm(); if (searchOption.getSearchExpression().isSearchUnary()) { throw new CDSRuntimeException(CDSRuntimeException.MessageKeys.UNARY_SEARCH_NOT_SUPPORTED, "Unary search is currently not supported.", HttpStatusCode.NOT_IMPLEMENTED.getStatusCode(),
appendSearchJson(gen, searchOption.getSearchExpression());
appendSearchJson(gen, searchOption.getSearchExpression());
.append("<ul>\n<li class=\"json\">"); json = jsonFactory.createGenerator(writer).useDefaultPrettyPrinter(); appendSearchJson(json, uriInfo.getSearchOption().getSearchExpression()); json.close(); writer.append("\n</li>\n</ul>\n");
.append("<ul>\n<li class=\"json\">"); json = jsonFactory.createGenerator(writer).useDefaultPrettyPrinter(); appendSearchJson(json, uriInfo.getSearchOption().getSearchExpression()); json.close(); writer.append("\n</li>\n</ul>\n");
protected javax.persistence.criteria.Expression<Boolean> createWhere(final UriInfoResource uriInfo, final List<JPANavigationProptertyInfo> navigationInfo) throws ODataApplicationException { final int handle = debugger.startRuntimeMeasurement(this, "createWhere"); javax.persistence.criteria.Expression<Boolean> whereCondition = null; // Given keys: Organizations('1')/Roles(...) try { whereCondition = createKeyWhere(navigationInfo); } catch (ODataApplicationException e) { debugger.stopRuntimeMeasurement(handle); throw e; } // http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398301 // http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url-conventions/odata-v4.0-errata02-os-part2-url-conventions-complete.html#_Toc406398094 // https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/ABNF/odata-abnf-construction-rules.txt try { whereCondition = addWhereClause(whereCondition, navigationInfo.get(navigationInfo.size() - 1).getFilterCompiler() .compile()); } catch (ExpressionVisitException e) { debugger.stopRuntimeMeasurement(handle); throw new ODataJPAQueryException(ODataJPAQueryException.MessageKeys.QUERY_PREPARATION_FILTER_ERROR, HttpStatusCode.BAD_REQUEST, e); } if (uriInfo.getSearchOption() != null && uriInfo.getSearchOption().getSearchExpression() != null) whereCondition = addWhereClause(whereCondition, context.getDatabaseProcessor().createSearchWhereClause(cb, this.cq, target, jpaEntity, uriInfo .getSearchOption())); debugger.stopRuntimeMeasurement(handle); return whereCondition; }
final SearchTerm term = searchOption.getSearchExpression().asSearchTerm(); @SuppressWarnings("unchecked") final Subquery<Object> sq = (Subquery<Object>) cq.subquery(entityType.getKeyType());
SearchOption searchOption = new SearchParser().parse(optionValue); SearchOptionImpl tmp = new SearchOptionImpl(); tmp.setSearchExpression(searchOption.getSearchExpression()); systemOption = tmp; break;
SearchOption searchOption = new SearchParser().parse(optionValue); SearchOptionImpl tmp = new SearchOptionImpl(); tmp.setSearchExpression(searchOption.getSearchExpression()); systemOption = tmp; break;