Package org.qi4j.api.query.grammar

Examples of org.qi4j.api.query.grammar.OrderBy


    @Override
    public Query<T> orderBy( Property<?> property, OrderBy.Order order )
    {
        if (orderBySegments == null)
            orderBySegments = Iterables.iterable( new OrderBy( QueryExpressions.property( property ), order ) );
        else
            orderBySegments = Iterables.append( new OrderBy( QueryExpressions.property( property ), order ), orderBySegments );
        return this;
    }
View Full Code Here


    @Override
    public Query<T> orderBy( Property<?> property, OrderBy.Order order )
    {
        if( orderBySegments == null )
        {
            orderBySegments = Iterables.iterable( new OrderBy( QueryExpressions.property( property ), order ) );
        }
        else
        {
            orderBySegments = Iterables.append( new OrderBy( QueryExpressions.property( property ), order ), orderBySegments );
        }
        return this;
    }
View Full Code Here

     *
     * @return a new Query ordering segment for a Property.
     */
    public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order )
    {
        return new OrderBy( property( property ), order );
    }
View Full Code Here

TOP

Related Classes of org.qi4j.api.query.grammar.OrderBy

Copyright © 2018 www.massapicom. 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.