use of jakarta.nosql.query.ArrayQueryValue in project jnosql-diana by eclipse.
the class AbstractMethodQueryProvider method exitBetween.
@Override
public void exitBetween(MethodParser.BetweenContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String variable = getVariable(ctx.variable());
Operator operator = BETWEEN;
ArrayQueryValue value = MethodArrayValue.of(variable);
checkCondition(new MethodCondition(variable, operator, value), hasNot);
}
use of jakarta.nosql.query.ArrayQueryValue in project jnosql-diana by eclipse.
the class AbstractWhereSupplier method exitIn.
@Override
public void exitIn(QueryParser.InContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String name = ctx.name().getText();
QueryValue<?>[] values = ctx.value().stream().map(ValueConverter::get).toArray(QueryValue[]::new);
ArrayQueryValue value = DefaultArrayValue.of(values);
checkCondition(new DefaultCondition(name, IN, value), hasNot);
}
Aggregations