Bug 319902 Internal API Usage of the ODA framework components
data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.ui/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/ui/internal/sqb/SQLQueryUtility.java
List<OrderBySpecification> orderBySpecList = ((QuerySelectStatement) queryStmt).getOrderByClause();
        if( ! orderBySpecList.isEmpty() ) 
        {
            for( Iterator<OrderBySpecification> iter = orderBySpecList.iterator(); iter.hasNext(); )
            {
                OrderBySpecification orderBySpec = iter.next();
                criteria.addRowSortKey( convertToSortKeyDesignHint( orderBySpec, resultSetDefn, 
                                                                    (QuerySelectStatement) queryStmt ) );
            } 
        }
        
        
        
        resultSetDefn.setCriteria( criteria );
    }
    
    private static SortKey convertToSortKeyDesignHint( OrderBySpecification orderBySpec, 
            final ResultSetDefinition resultSetDefn, final QuerySelectStatement selectStmt )
        throws OdaException
    {
        if( orderBySpec == null )
            return null;
        
        SortKey sortKeyHint = DesignFactory.eINSTANCE.createSortKey();
        sortKeyHint.setOptional( false );   
        
        if( orderBySpec instanceof OrderByOrdinal )