public OptionalSyntax orderBy ( Path < ? > ... path ) { String fieldList = "" ; boolean firstExpression = true ; for ( Path < ? > exp : path ) { if ( firstExpression ) { fieldList = fieldList . concat ( exp . toString ( ) ) ; firstExpression = false ; } else { fieldList = fieldList . concat ( ", " ) . concat ( exp . toString ( ) ) ; } LOG . debug ( "expression: " + exp ) ; } QueryMessage mess = getMessage ( ) ; mess . setOrderByClause ( fieldList ) ; return new OptionalSyntax ( mess ) ; }
Method to get the optional syntax for order by operator