Examples of Ordering


Examples of org.richfaces.model.Ordering

  if (this._sortOrder != null) {
    return this._sortOrder;
  }
  ValueExpression ve = getValueExpression("sortOrder");
  if (ve != null) {
      Ordering value = null;
     
      try {
      value = (Ordering) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.Ordering

  if (this._sortOrder != null) {
    return this._sortOrder;
  }
  ValueExpression ve = getValueExpression("sortOrder");
  if (ve != null) {
      Ordering value = null;
     
      try {
      value = (Ordering) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.Ordering

            if (expression.isLiteralText()) {
                field = expressionString;
            } else {
                field = expressionString.replaceAll("[#|$]\\{", "").replaceAll("\\}", "");
            }
            Ordering ordering = sortField.getOrdering();
            PageOrdering pageOrdering = (ordering == Ordering.ASCENDING) ? PageOrdering.ASC : PageOrdering.DESC;
            OrderingField orderingField = new OrderingField(field, pageOrdering);
            orderingFields.add(orderingField);
        }
        return orderingFields;
View Full Code Here

Examples of org.sql.generation.api.grammar.query.Ordering

                    else
                    {
                        colName = DBNames.QNAME_TABLE_VALUE_COLUMN_NAME;
                        tableIdx = tableIndex;
                    }
                    Ordering ordering = Ordering.ASCENDING;
                    if( orderBy[idx].order() == Order.DESCENDING )
                    {
                        ordering = Ordering.DESCENDING;
                    }
                    builder.getOrderBy().addSortSpecs(
View Full Code Here

Examples of org.teiid.language.SortSpecification.Ordering

        }
        List<OrderByItem> items = orderBy.getOrderByItems();
        List<SortSpecification> translatedItems = new ArrayList<SortSpecification>();
        for (int i = 0; i < items.size(); i++) {
            SingleElementSymbol symbol = items.get(i).getSymbol();
            Ordering direction = items.get(i).isAscending() ? Ordering.ASC: Ordering.DESC;
           
            SortSpecification orderByItem = null;                               
            if(items.get(i).isUnrelated() || (!set && symbol instanceof ElementSymbol)){
              orderByItem = new SortSpecification(direction, translate(symbol));                               
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.