protected List<String> prepareSortKeyStatements(List<SortKey> sortKeys){
  List<String> keys=new ArrayList<String>();
  for (int i=0; i < sortKeys.size(); i++) {
    SortKey sortKey=sortKeys.get(i);
    keys.add(explicitMapping.getDbColumnName(sortKey.getField()) + (sortKey.isAscendingOrder() ? " ASC" : " DESC"));
  }
  return keys;
}

protected List < String > prepareSortKeyStatements ( List < SortKey > sortKeys ) { List < String > keys = new ArrayList < String > ( ) ; for ( int i = 0 ; i < sortKeys . size ( ) ; i ++ ) { SortKey sortKey = sortKeys . get ( i ) ; keys . add ( explicitMapping . getDbColumnName ( sortKey . getField ( ) ) + ( sortKey . isAscendingOrder ( ) ? " ASC" : " DESC" ) ) ; } return keys ; }
loops through sort keys constructing the key statements .
