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
@@ -468,6 +468,19 @@ public class DefaultExpressionList<T> implements SpiExpressionList<T> {
add(expr.in(propertyName, values));
return this;
}
@Override
public ExpressionList<T> exists(Query<?> subQuery) {
add(expr.exists(subQuery));
return this;
}
@Override
public ExpressionList<T> notExists(Query<?> subQuery) {
add(expr.notExists(subQuery));
return this;
}
@Override
public ExpressionList<T> isNotNull(String propertyName) {