Re: Fluent API addition request

2024-07-08 Thread John Huss
FWIW, when I need something like this for the WHERE part of a query I do it with the ternary operator and a static import of ExpressionFactory (which your IDE can add for you), like: .and(yearRange != null ? APPOINTMENT_DATE.gt(yearRange) : expTrue()) I don't think there is a good alternative to

Re: Fluent API addition request

2024-07-08 Thread Jurgen Doll
Hi All What about borrowing "apply" from Function/UnaryOperator ? Then we'll have the following API added to Expression: /** * Apply the provided UnaryOperator function to the current Expression. */ public Expression apply( UnaryOperator op ) { return op.apply( this ); } And the same for