Package de.businesscode.bcdui.wrs.load
Class WrqCalc2Sql
java.lang.Object
de.businesscode.bcdui.wrs.load.WrqCalc2Sql
Parses a Wrq and outputs SQL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
closeOperator
(Element e, StringBuffer sql) protected static boolean
containsAggr
(Element calc) protected String
getWrqCalcAsSql
(Element calc, List<Element> boundVariables, boolean enforceAggr, int dataType, List<String> wrqTableAlias) Returns a list of strings representing parts of SQL All uneven pos (including first) belong to the aggregation level an all even pos give one un-aggregated sql calc Sample 1: SUM(t38.f_k01)+AVG(t38.f_k01*3) |1 | 2 | 3 | 4 | 5 Sample 2: SUM(SUM(t38.f_k01*t38.f_k01)) OVER (PARTITION BY orig_ctr) | 1 | 2 | 3 | 4 |protected void
openOperator
(Element e, StringBuffer sql)
-
Field Details
-
wrqInfo
-
calc
-
boundVariables
-
calcFktMapping
-
aggregationMapping
-
-
Constructor Details
-
WrqCalc2Sql
-
-
Method Details
-
getWrqCalcAsSql
protected String getWrqCalcAsSql(Element calc, List<Element> boundVariables, boolean enforceAggr, int dataType, List<String> wrqTableAlias) throws Exception Returns a list of strings representing parts of SQL All uneven pos (including first) belong to the aggregation level an all even pos give one un-aggregated sql calc Sample 1: SUM(t38.f_k01)+AVG(t38.f_k01*3) |1 | 2 | 3 | 4 | 5 Sample 2: SUM(SUM(t38.f_k01*t38.f_k01)) OVER (PARTITION BY orig_ctr) | 1 | 2 | 3 | 4 |- Throws:
Exception
-
containsAggr
-
openOperator
- Throws:
BindingNotFoundException
-
closeOperator
- Throws:
BindingNotFoundException
-