Package de.businesscode.bcdui.wrs.load
Class WrqFilter2Sql
java.lang.Object
de.businesscode.bcdui.wrs.load.WrqFilter2Sql
Parses a f:Filter expression and returns the SQL Where expression
For older change history, see WrsSqlGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
generateSingleColumnExpression
(WrqInfo wrqInfo, Element item, Collection<Element> boundVariables, Document ownerDocument, boolean useAggr) 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 examplegetAsSql
(Collection<Element> elementList) static String
-
Constructor Details
-
WrqFilter2Sql
public WrqFilter2Sql(WrqInfo wrqInfo, Element root, boolean useAggr) throws XPathExpressionException - Throws:
XPathExpressionException
-
-
Method Details
-
getAsSql
- Throws:
BindingNotFoundException
-
generateSingleColumnExpression
protected static String generateSingleColumnExpression(WrqInfo wrqInfo, Element item, Collection<Element> boundVariables, Document ownerDocument, boolean useAggr) throws BindingNotFoundException 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:
BindingNotFoundException
-
getOperatorMapping
-