summaryrefslogtreecommitdiffstats
path: root/src/com/iciql/QueryBetween.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-08 12:25:12 -0400
committerJames Moger <james.moger@gmail.com>2011-08-08 12:25:12 -0400
commitf44168da2824063985f8ecfa1a75f9984e8f7fb0 (patch)
tree6501b13134a5644d5560f9cb3be835c576919266 /src/com/iciql/QueryBetween.java
parentd5a74dcac41eeb96a656b7033e43d51b92f75d18 (diff)
downloadiciql-f44168da2824063985f8ecfa1a75f9984e8f7fb0.tar.gz
iciql-f44168da2824063985f8ecfa1a75f9984e8f7fb0.zip
Documentation. Moved dialects into separate package.
Diffstat (limited to 'src/com/iciql/QueryBetween.java')
-rw-r--r--src/com/iciql/QueryBetween.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/com/iciql/QueryBetween.java b/src/com/iciql/QueryBetween.java
index 26ac40e..de09515 100644
--- a/src/com/iciql/QueryBetween.java
+++ b/src/com/iciql/QueryBetween.java
@@ -16,18 +16,38 @@
package com.iciql;
+/**
+ * This class represents a "between y and z" condition.
+ */
public class QueryBetween<T, A> {
-
+
private Query<T> query;
private A x;
private A y;
+ /**
+ * Construct a between condition.
+ *
+ * @param query
+ * the query
+ * @param x
+ * the alias
+ * @param y
+ * the lower bound of the between condition
+ */
public QueryBetween(Query<T> query, A x, A y) {
this.query = query;
this.x = x;
this.y = y;
}
-
+
+ /**
+ * Set the upper bound of the between condition.
+ *
+ * @param z
+ * the upper bound of the between condition
+ * @return the query
+ */
public QueryWhere<T> and(A z) {
query.addConditionToken(new Condition<A>(x, y, z, CompareType.BETWEEN));
return new QueryWhere<T>(query);