summaryrefslogtreecommitdiffstats
path: root/src/com/iciql/QueryCondition.java
diff options
context:
space:
mode:
authorJames Moger <jmoger@vas.com>2012-05-07 13:46:59 -0400
committerJames Moger <jmoger@vas.com>2012-05-07 13:46:59 -0400
commitc5ea6785a5ce16ce9c856e220ced92091b9e1ef5 (patch)
treefad25ac7049e62d25d8cee5c145389643fe7dba2 /src/com/iciql/QueryCondition.java
parentdd8d894824afb8ba677e838dbab2781e06d643f5 (diff)
downloadiciql-c5ea6785a5ce16ce9c856e220ced92091b9e1ef5.tar.gz
iciql-c5ea6785a5ce16ce9c856e220ced92091b9e1ef5.zip
Draft support for "where xxx in(select bbb from...)"
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);