public void pushNot() { push(new LazyNegationExpr()); }
@Override public void predicateNotEquals(String value) { activateNOT(); addComparisonPredicate(value, ComparisonExpr.Type.EQUAL); deactivateBoolean(); }
public void pushFullTextOccur(QueryRendererDelegate.Occur occur) { push(new LazyFTOccurExpr(occur)); }
private PropertyPath<TypeDescriptor<TypeMetadata>> resolveAlias(PropertyPath<TypeDescriptor<TypeMetadata>> path) { List<PropertyPath.PropertyReference<TypeDescriptor<TypeMetadata>>> resolved = resolveAliasPath(path); return path instanceof AggregationPropertyPath ? new AggregationPropertyPath<>(((AggregationPropertyPath) path).getAggregationFunction(), resolved) : new PropertyPath<>(resolved); }
public static <TypeMetadata> IckleParsingResult<TypeMetadata> parse(String queryString, ObjectPropertyHelper<TypeMetadata> propertyHelper) { QueryResolverDelegateImpl resolverDelegate = new QueryResolverDelegateImpl<>(propertyHelper); QueryRendererDelegateImpl<TypeMetadata> rendererDelegate = new QueryRendererDelegateImpl<>(queryString, propertyHelper); queryParser.parseQuery(queryString, resolverDelegate, rendererDelegate); return rendererDelegate.getResult(); } }
public void pushOr() { push(new LazyOrExpr()); }
private void push(BooleanExpr expr) { push(new LazyLeafBooleanExpr(expr)); }
public void pushFullTextBoost(float boost) { push(new LazyFTBoostExpr(boost)); }
public void pushAnd() { push(new LazyAndExpr()); }
@Override public String getEntityTypeName() { return parsingResult.getTargetEntityName(); }
public RowMatcher(RowPropertyHelper.ColumnMetadata[] columns) { super(new RowPropertyHelper(columns)); rowMetadata = ((RowPropertyHelper) propertyHelper).getRowMetadata(); }
@Override public String[] getProjection() { return parsingResult.getProjections(); }
/** * This implements the equality predicate; the comparison * predicate could be a constant, a subfunction or * some random type parameter. * The tree node has all details but with current tree rendering * it just passes it's text so we have to figure out the options again. */ @Override public void predicateEquals(String value) { addComparisonPredicate(value, ComparisonExpr.Type.EQUAL); }
QueryRendererDelegateImpl(String queryString, ObjectPropertyHelper<TypeMetadata> propertyHelper) { this.queryString = queryString; this.propertyHelper = propertyHelper; this.whereBuilder = new ExpressionBuilder<>(propertyHelper); this.havingBuilder = new ExpressionBuilder<>(propertyHelper); }
@Override public BooleanExpr get() { return child == null ? null : child.get(); } }
@Override public List<String> mapPropertyNamePathToFieldIdPath(String[] path) { return (List<String>) propertyHelper.mapPropertyNamePathToFieldIdPath(clazz, path); }
@Override public void predicateLessOrEqual(String value) { addComparisonPredicate(value, ComparisonExpr.Type.LESS_OR_EQUAL); }