Added SQL command "EXISTS" and "NOT EXISTS" to Ebean (ExpressionFactory,

ExpressionList).
This commit is contained in:
Ryszard-Trojnacki
2015-03-19 10:43:12 +01:00
parent f78f4ea64a
commit 2e03452e2e
7 changed files with 188 additions and 0 deletions
@@ -169,6 +169,16 @@ public interface ExpressionFactory {
* In - property has a value in the collection of values.
*/
public Expression in(String propertyName, Collection<?> values);
/**
* Exists expression
*/
public Expression exists(Query<?> subQuery);
/**
* Not exists expression
*/
public Expression notExists(Query<?> subQuery);
/**
* Id Equal to - ID property is equal to the value.