if (orderInfo.getFields().size() == 0) {
log.debug("No filterInfoFields specified, returning null");
return null;
}
MultiComparatorExpression multiExpr = new MultiComparatorExpression();
Iterator i = orderInfo.getFields().iterator();
while (i.hasNext()) {
OrderInfoField orderInfoField = (OrderInfoField) i.next();
ColumnOrder columnOrder = (ColumnOrder) this.columnOrders
.get(orderInfoField.getId());
if (columnOrder != null) {
ComparatorExpression temp = columnOrder
.buildComparatorExpression(orderInfo);
if (!orderInfoField.isAscending()) {
temp = new ReverseComparatorExpression(temp);
}
multiExpr.add(temp);
}
}
return multiExpr;
}