Class SelectorUtility


  • public class SelectorUtility
    extends Object
    Common utility functions to be used by the different selectors.
    Author:
    huehner
    • Constructor Detail

      • SelectorUtility

        public SelectorUtility()
    • Method Detail

      • buildOrderByClause

        public static String buildOrderByClause​(String strOrderCols,
                                                String strOrderDirs)
                                         throws javax.servlet.ServletException
        Builds an sql orderBy clause constructed out of list of order by column names and directions.
        Parameters:
        strOrderCols - String with list of orderBy columns from getInStringParameter
        strOrderDirs - String with list of orderBy directions from getInStringParameter
        Returns:
        String to be passed after sql "ORDER BY"
        Throws:
        javax.servlet.ServletException - on malformed input