use of jakarta.nosql.document.DocumentCondition in project jnosql-diana by eclipse.
the class BaseQueryBuilder method eqImpl.
protected <T> void eqImpl(T value) {
requireNonNull(value, "value is required");
DocumentCondition newCondition = DocumentCondition.eq(Document.of(name, value));
appendCondition(newCondition);
}
use of jakarta.nosql.document.DocumentCondition in project jnosql-diana by eclipse.
the class BaseQueryBuilder method betweenImpl.
protected <T> void betweenImpl(T valueA, T valueB) {
requireNonNull(valueA, "valueA is required");
requireNonNull(valueB, "valueB is required");
DocumentCondition newCondition = DocumentCondition.between(Document.of(name, asList(valueA, valueB)));
appendCondition(newCondition);
}
use of jakarta.nosql.document.DocumentCondition in project jnosql-diana by eclipse.
the class BaseQueryBuilder method lteImpl.
protected <T> void lteImpl(T value) {
requireNonNull(value, "value is required");
DocumentCondition newCondition = DocumentCondition.lte(Document.of(name, value));
appendCondition(newCondition);
}
use of jakarta.nosql.document.DocumentCondition in project jnosql-diana by eclipse.
the class BaseQueryBuilder method gteImpl.
protected <T> void gteImpl(T value) {
requireNonNull(value, "value is required");
DocumentCondition newCondition = DocumentCondition.gte(Document.of(name, value));
appendCondition(newCondition);
}
use of jakarta.nosql.document.DocumentCondition in project jnosql-diana by eclipse.
the class BaseQueryBuilder method ltImpl.
protected <T> void ltImpl(T value) {
requireNonNull(value, "value is required");
DocumentCondition newCondition = DocumentCondition.lt(Document.of(name, value));
appendCondition(newCondition);
}
Aggregations