aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/Query.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/iciql/Query.java')
-rw-r--r--src/com/iciql/Query.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/iciql/Query.java b/src/com/iciql/Query.java
index a8aa8b2..e656c0d 100644
--- a/src/com/iciql/Query.java
+++ b/src/com/iciql/Query.java
@@ -176,6 +176,7 @@ public class Query<T> {
}
public <A> UpdateColumnSet<T, A> set(A field) {
+ from.getAliasDefinition().checkMultipleEnums(field);
return new UpdateColumnSet<T, A>(this, field);
}
@@ -453,6 +454,7 @@ public class Query<T> {
* @return a query condition to continue building the condition
*/
public <A> QueryCondition<T, A> where(A x) {
+ from.getAliasDefinition().checkMultipleEnums(x);
return new QueryCondition<T, A>(this, x);
}
@@ -551,6 +553,7 @@ public class Query<T> {
}
public Query<T> orderBy(Object expr) {
+ from.getAliasDefinition().checkMultipleEnums(expr);
OrderExpression<T> e = new OrderExpression<T>(this, expr, false, false, false);
addOrderBy(e);
return this;
@@ -566,6 +569,7 @@ public class Query<T> {
public Query<T> orderBy(Object... expressions) {
for (Object expr : expressions) {
+ from.getAliasDefinition().checkMultipleEnums(expr);
OrderExpression<T> e = new OrderExpression<T>(this, expr, false, false, false);
addOrderBy(e);
}
@@ -616,6 +620,7 @@ public class Query<T> {
}
public Query<T> groupBy(Object expr) {
+ from.getAliasDefinition().checkMultipleEnums(expr);
groupByExpressions.add(expr);
return this;
}