use of jakarta.nosql.query.Operator 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.Operator in project jnosql-diana by eclipse.
the class AbstractMethodQueryProvider method exitGt.
@Override
public void exitGt(MethodParser.GtContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String variable = getVariable(ctx.variable());
Operator operator = GREATER_THAN;
appendCondition(hasNot, variable, operator);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class AbstractMethodQueryProvider method exitLike.
@Override
public void exitLike(MethodParser.LikeContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String variable = getVariable(ctx.variable());
Operator operator = LIKE;
appendCondition(hasNot, variable, operator);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class AbstractMethodQueryProvider method exitGte.
@Override
public void exitGte(MethodParser.GteContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String variable = getVariable(ctx.variable());
Operator operator = GREATER_EQUALS_THAN;
appendCondition(hasNot, variable, operator);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class AbstractMethodQueryProvider method exitIn.
@Override
public void exitIn(MethodParser.InContext ctx) {
boolean hasNot = Objects.nonNull(ctx.not());
String variable = getVariable(ctx.variable());
Operator operator = IN;
appendCondition(hasNot, variable, operator);
}
Aggregations