aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/QueryCondition.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2017-01-30 16:38:24 -0500
committerJames Moger <james.moger@gitblit.com>2017-01-30 16:46:03 -0500
commit0a8fd25fd85b28c804e4c81c90bd35fdb2e57a66 (patch)
tree44a0ba94fc3ae9199dd1feb44413b0b9947c3451 /src/main/java/com/iciql/QueryCondition.java
parentcf7ea9600595749065129d48fbdff6f781db87b3 (diff)
downloadiciql-0a8fd25fd85b28c804e4c81c90bd35fdb2e57a66.tar.gz
iciql-0a8fd25fd85b28c804e4c81c90bd35fdb2e57a66.zip
Added bitwise AND and XOR DSL for where clauses
Diffstat (limited to 'src/main/java/com/iciql/QueryCondition.java')
-rw-r--r--src/main/java/com/iciql/QueryCondition.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/iciql/QueryCondition.java b/src/main/java/com/iciql/QueryCondition.java
index 56de976..b7cb0d4 100644
--- a/src/main/java/com/iciql/QueryCondition.java
+++ b/src/main/java/com/iciql/QueryCondition.java
@@ -147,4 +147,17 @@ public class QueryCondition<T, A> {
query.addConditionToken(new RuntimeParameter<A>(x, CompareType.LIKE));
return new QueryWhere<T>(query);
}
+
+ public Bitwise<A, T> bitAnd(A y) {
+ BitCondition<A, T> bitCondition = new BitCondition<A, T>(x, y, BitCondition.Bitwise.AND, query);
+ query.addConditionToken(bitCondition);
+ return bitCondition;
+ }
+
+ public Bitwise<A, T> bitXor(A y) {
+ BitCondition<A, T> bitCondition = new BitCondition<A, T>(x, y, BitCondition.Bitwise.XOR, query);
+ query.addConditionToken(bitCondition);
+ return bitCondition;
+ }
+
}