mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1426 - ENH: Add bitwiseNot expression ... e.g. bitwiseNot("flags", BwFlags.HAS_COLOUR)
This commit is contained in:
@@ -711,6 +711,12 @@ public class DefaultExpressionList<T> implements SpiExpressionList<T> {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpressionList<T> bitwiseNot(String propertyName, long flags) {
|
||||
add(expr.bitwiseAnd(propertyName, flags, 0));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpressionList<T> bitwiseAll(String propertyName, long flags) {
|
||||
add(expr.bitwiseAll(propertyName, flags));
|
||||
|
||||
@@ -554,6 +554,11 @@ class JunctionExpression<T> implements SpiJunction<T>, SpiExpression, Expression
|
||||
return exprList.bitwiseAnd(propertyName, flags, match);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpressionList<T> bitwiseNot(String propertyName, long flags) {
|
||||
return exprList.bitwiseNot(propertyName, flags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpressionList<T> ge(String propertyName, Object value) {
|
||||
return exprList.ge(propertyName, value);
|
||||
|
||||
Reference in New Issue
Block a user