Package org.openbravo.erpCommon.info
Class SelectorUtility
- java.lang.Object
-
- org.openbravo.erpCommon.info.SelectorUtility
-
public class SelectorUtility extends Object
Common utility functions to be used by the different selectors.- Author:
- huehner
-
-
Constructor Summary
Constructors Constructor Description SelectorUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildOrderByClause(String strOrderCols, String strOrderDirs)
Builds an sql orderBy clause constructed out of list of order by column names and directions.
-
-
-
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 getInStringParameterstrOrderDirs
- String with list of orderBy directions from getInStringParameter- Returns:
- String to be passed after sql "ORDER BY"
- Throws:
javax.servlet.ServletException
- on malformed input
-
-