Examples of descending()


Examples of oracle.toplink.essentials.expressions.Expression.descending()

        ReadAllQuery readAllQuery = (ReadAllQuery) getSelectionQuery();
        ExpressionBuilder builder = readAllQuery.getExpressionBuilder();
        Expression expression = builder.get(aggregateName).get(queryKeyName).toUpperCase();
       
        if (isDescending) {
            readAllQuery.addOrdering(expression.descending());
        } else {
            readAllQuery.addOrdering(expression.ascending());
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.site.NodeSet.descending()

            selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
            siteManager = (SiteManager) selector.select(document.getPublication()
                    .getSiteManagerHint());

            NodeSet subsite = SiteUtil.getSubSite(this.manager, document.getLink().getNode());
            for (NodeIterator i = subsite.descending(); i.hasNext();) {
                SiteNode node = i.next();
                String[] languages = node.getLanguages();
                for (int l = 0; l < languages.length; l++) {
                    Document doc = node.getLink(languages[l]).getDocument();
                    delete(doc);
View Full Code Here

Examples of org.apache.lenya.cms.site.NodeSet.descending()

            selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
            siteManager = (SiteManager) selector.select(document.getPublication()
                    .getSiteManagerHint());

            NodeSet subsite = SiteUtil.getSubSite(this.manager, document.getLink().getNode());
            for (NodeIterator i = subsite.descending(); i.hasNext();) {
                SiteNode node = i.next();
                String[] languages = node.getLanguages();
                for (int l = 0; l < languages.length; l++) {
                    Document doc = node.getLink(languages[l]).getDocument();
                    delete(doc);
View Full Code Here

Examples of org.apache.lenya.cms.site.NodeSet.descending()

            selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
            siteManager = (SiteManager) selector.select(document.getPublication()
                    .getSiteManagerHint());

            NodeSet subsite = SiteUtil.getSubSite(this.manager, document.getLink().getNode());
            for (NodeIterator i = subsite.descending(); i.hasNext();) {
                SiteNode node = i.next();
                String[] languages = node.getLanguages();
                for (int l = 0; l < languages.length; l++) {
                    Document doc = node.getLink(languages[l]).getDocument();
                    delete(doc);
View Full Code Here

Examples of org.eclipse.persistence.expressions.Expression.descending()

    Expression queryExpression = queryContext.buildExpression(expression.getExpression());

    // Create the ordering item
    switch (expression.getOrdering()) {
      case ASC:  queryExpression = queryExpression.ascending()break;
      case DESC: queryExpression = queryExpression.descending(); break;
    }

    // Create the null ordering item
    switch (expression.getNullOrdering()) {
      case NULLS_FIRST: queryExpression = queryExpression.nullsFirst(); break;
View Full Code Here

Examples of org.eclipse.persistence.expressions.Expression.descending()

    Expression queryExpression = queryContext.buildExpression(expression.getExpression());

    // Create the ordering item
    switch (expression.getOrdering()) {
      case ASC:  queryExpression = queryExpression.ascending()break;
      case DESC: queryExpression = queryExpression.descending(); break;
    }

    // Create the null ordering item
    switch (expression.getNullOrdering()) {
      case NULLS_FIRST: queryExpression = queryExpression.nullsFirst(); break;
View Full Code Here

Examples of org.eclipse.persistence.expressions.Expression.descending()

    Expression queryExpression = queryContext.buildExpression(expression.getExpression());

    // Create the ordering item
    switch (expression.getOrdering()) {
      case ASC:  queryExpression = queryExpression.ascending()break;
      case DESC: queryExpression = queryExpression.descending(); break;
    }

    // Create the null ordering item
    switch (expression.getNullOrdering()) {
      case NULLS_FIRST: queryExpression = queryExpression.nullsFirst(); break;
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryBuilder.OrderByBuilder.descending()

                switch (spec.getOrder()) {
                    case ASCENDING:
                        operandBuilder = orderByBuilder.ascending();
                        break;
                    case DESCENDING:
                        operandBuilder = orderByBuilder.descending();
                        break;
                }
                assert operandBuilder != null;
                if (spec.getAttributeName() != null) {
                    // This order by is defined by an attribute ...
View Full Code Here

Examples of org.modeshape.jcr.api.query.qom.QueryObjectModelFactory.descending()

                                 factory.equiJoinCondition("car1", "car:maker", "car2", "car:maker"));
        Column[] columns = new Column[] {factory.column("car1", null, null)};
        Constraint constraint = factory.comparison(factory.propertyValue("car1", "car:maker"),
                                                   QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO,
                                                   factory.literal(session.getValueFactory().createValue("Toyota")));
        Ordering[] orderings = new Ordering[] {factory.descending(factory.propertyValue("car1", "car:year"))};
        Query query = factory.createQuery(join, constraint, orderings, columns);
        QueryResult result = query.execute();
        validateQuery().rowCount(9).hasColumns(carColumnNames("car1")).validate(query, result);
    }
View Full Code Here

Examples of org.modeshape.jcr.query.QueryBuilder.OrderByBuilder.descending()

                switch (spec.getOrder()) {
                    case ASCENDING:
                        operandBuilder = orderByBuilder.ascending();
                        break;
                    case DESCENDING:
                        operandBuilder = orderByBuilder.descending();
                        break;
                }
                assert operandBuilder != null;
                if (spec.getAttributeName() != null) {
                    // This order by is defined by an attribute ...
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.