summaryrefslogtreecommitdiffstats
path: root/src/com/iciql/QueryCondition.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/iciql/QueryCondition.java')
-rw-r--r--src/com/iciql/QueryCondition.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/iciql/QueryCondition.java b/src/com/iciql/QueryCondition.java
index 2595531..9613b1b 100644
--- a/src/com/iciql/QueryCondition.java
+++ b/src/com/iciql/QueryCondition.java
@@ -36,6 +36,11 @@ public class QueryCondition<T, A> {
this.x = x;
}
+ public <Q, Z> QueryWhere<T> in(SubQuery<Q, Z> q) {
+ query.addConditionToken(new SubQueryCondition<A, Q, Z>(x, q));
+ return new QueryWhere<T>(query);
+ }
+
public QueryWhere<T> is(A y) {
query.addConditionToken(new Condition<A>(x, y, CompareType.EQUAL));
return new QueryWhere<T>(query);