use of jakarta.nosql.column.ColumnCondition in project jnosql-diana by eclipse.
the class AbstractMapperQuery method gteImpl.
protected <T> void gteImpl(T value) {
requireNonNull(value, "value is required");
ColumnCondition newCondition = ColumnCondition.gte(Column.of(mapping.getColumnField(name), getValue(value)));
appendCondition(newCondition);
}
use of jakarta.nosql.column.ColumnCondition in project jnosql-diana by eclipse.
the class AbstractMapperQuery method likeImpl.
protected void likeImpl(String value) {
requireNonNull(value, "value is required");
ColumnCondition newCondition = ColumnCondition.like(Column.of(mapping.getColumnField(name), getValue(value)));
appendCondition(newCondition);
}
use of jakarta.nosql.column.ColumnCondition in project jnosql-diana by eclipse.
the class AbstractMapperQuery method appendCondition.
protected void appendCondition(ColumnCondition newCondition) {
ColumnCondition columnCondition = getColumnCondition(newCondition);
if (nonNull(condition)) {
if (and) {
this.condition = condition.and(columnCondition);
} else {
this.condition = condition.or(columnCondition);
}
} else {
this.condition = columnCondition;
}
this.negate = false;
this.name = null;
}
use of jakarta.nosql.column.ColumnCondition in project jnosql-diana by eclipse.
the class AbstractMapperQuery method lteImpl.
protected <T> void lteImpl(T value) {
requireNonNull(value, "value is required");
ColumnCondition newCondition = ColumnCondition.lte(Column.of(mapping.getColumnField(name), getValue(value)));
appendCondition(newCondition);
}
use of jakarta.nosql.column.ColumnCondition in project jnosql-diana by eclipse.
the class AbstractMapperQuery method eqImpl.
protected <T> void eqImpl(T value) {
requireNonNull(value, "value is required");
ColumnCondition newCondition = ColumnCondition.eq(Column.of(mapping.getColumnField(name), getValue(value)));
appendCondition(newCondition);
}
Aggregations