private IQTree getFirstNonQueryModifierTree ( IQ query ) { // Non-final IQTree iqTree = query . getTree ( ) ; while ( iqTree . getRootNode ( ) instanceof QueryModifierNode ) { iqTree = ( ( UnaryIQTree ) iqTree ) . getChild ( ) ; } return iqTree ; }
Assumes that ORDER BY is ABOVE the first construction node