#790955 : added skipping of null values

This commit is contained in:
Timo Westkämper 2011-07-01 13:48:36 +00:00
parent 5a6e432509
commit 3c9924546f
3 changed files with 9 additions and 3 deletions

View File

@ -37,7 +37,9 @@ public class ColQueryMixin<T> extends QueryMixin<T> {
@Override
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
for (int i = 0; i < conditions.length; i++){
conditions[i] = normalize(conditions[i], where);
if (conditions[i] != null) {
conditions[i] = normalize(conditions[i], where);
}
}
return conditions;
}

View File

@ -43,7 +43,9 @@ public class JDOQLQueryMixin<T> extends QueryMixin<T> {
@Override
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
for (int i = 0; i < conditions.length; i++){
conditions[i] = normalize(conditions[i], where);
if (conditions[i] != null) {
conditions[i] = normalize(conditions[i], where);
}
}
return conditions;
}

View File

@ -71,7 +71,9 @@ public class JPQLQueryMixin<T> extends QueryMixin<T> {
@Override
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
for (int i = 0; i < conditions.length; i++){
conditions[i] = normalize(conditions[i], where);
if (conditions[i] != null) {
conditions[i] = normalize(conditions[i], where);
}
}
return conditions;
}