Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Constraint(s) with a more generic Expression API.
Expression API allows better evaluation of queries (eg. `field1 = field2`) previously impossible with Constraints. Also definition of new functions doesn't require changing Visitor API. This is work in progress.
- Loading branch information
1 parent
05ecdd0
commit dbaf0cd
Showing
20 changed files
with
247 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
criteria/src/org/immutables/criteria/constraints/Call.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
package org.immutables.criteria.constraints; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* An expression formed by a call to an operator (eg. {@link Operators#EQUAL}) with zero or more arguments. | |||
*/ | |||
public interface Call<T> extends Expression<T> { | |||
|
|||
|
|||
/** | |||
* Get the arguments of this operation | |||
* | |||
* @return arguments | |||
*/ | |||
List<Expression<?>> getOperands(); | |||
|
|||
/** | |||
* Get the operator symbol for this operation | |||
* | |||
* @return operator | |||
*/ | |||
Operator getOperator(); | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
227 changes: 0 additions & 227 deletions
227
criteria/src/org/immutables/criteria/constraints/Constraints.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.