Package org.jpox.store.mapped.query

Examples of org.jpox.store.mapped.query.StatementText


     * query statement.
     * @return The ordering statement
     */
    protected StatementText generateOrderingStatement()
    {
        StatementText orderByStmt = null;
        if (orderingExpressions != null && orderingExpressions.length > 0)
        {
            orderByStmt = new StatementText();
            for (int i=0; i<orderingExpressions.length; ++i)
            {
                if (i > 0)
                {
                    orderByStmt.append(',');
                }

                orderByStmt.append(Integer.toString(orderingColumnIndexes[i]));
                if (orderingDirections[i])
                {
                    orderByStmt.append(" DESC");
                }
            }
        }

        return orderByStmt;
View Full Code Here

TOP

Related Classes of org.jpox.store.mapped.query.StatementText

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.