Class WrqFilter2Sql

java.lang.Object
de.businesscode.bcdui.wrs.load.WrqFilter2Sql

public class WrqFilter2Sql extends Object
Parses a f:Filter expression and returns the SQL Where expression For older change history, see WrsSqlGenerator
  • Constructor Details

  • Method Details

    • getAsSql

      public String getAsSql(List<Element> elementList) throws Exception
      Throws:
      Exception
    • generateSingleColumnExpression

      protected String generateSingleColumnExpression(WrqInfo wrqInfo, Element item, List<Element> boundVariables, Document ownerDocument, boolean useAggr) throws Exception
      Helper for WHERE clause generation ignoreCase is only allowed for dimensions and non-numeric types TODO If a non-dim bindingItem is used multiple times with different aggr in the select list, the aggr of the last one wins This limitation could be removed by allowing to overwrite the aggr at the having-filter expression, for example
      Parameters:
      wrqInfo -
      item -
      boundVariables -
      ownerDocument -
      useAggr -
      Returns:
      Throws:
      Exception
    • getOperatorMapping

      public static String getOperatorMapping(String op)