agrestio / agrest

Server-side Java REST Framework for easy access to data graphs from various backends
https://agrest.io
Apache License 2.0
80 stars 34 forks source link

Static factory methods in Exp for conditions #643

Closed andrus closed 1 year ago

andrus commented 1 year ago

Let's add static expression factory methods to the Exp interface to build conditions. They will supercede the current Exp.keyValue, Exp.simple. E.g.:

Exp.not()
Exp.equal()
Exp.less()
Exp.lessOrEqual()
Exp.in()
Exp.notIn()
... etc

Note that we'll need to work some more on the expresion builder API beyond this task to accommodate more complex expressions with functions, arithmetics, etc.