code: private void _buildStatement(
                      final List<Order> orders,
                      final Limit limit,
                      final StringBuilder stmt
                      )
      {
          stmt.append( _selectClause ).append( _fromClause ).append( _whereClause );
          if (orders == null) {
              stmt.append( _orderClause );
          } else {
              _buildOrderClause( orders, stmt );
          }
  
          if (isLimitEnabled()) {
              if (limit == null) {
                  stmt.append( _limitClause );
              } else {
                  _buildLimit( limit, stmt );
              }
          }
      }
docs: Returns the OQL statement.
  
  @return
  an OQL statement.