summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2012-01-04 01:44:07 (EST)
committer mwu2012-01-04 01:44:07 (EST)
commit1effe4dd6f4429622ea188778445b76bd15acef7 (patch)
tree43ff893f744acecdfe9a9199610ae10c0b8f3745
parent2219a5a2c871fc34ff65ac8b880341474646c173 (diff)
downloadorg.eclipse.birt-1effe4dd6f4429622ea188778445b76bd15acef7.zip
org.eclipse.birt-1effe4dd6f4429622ea188778445b76bd15acef7.tar.gz
org.eclipse.birt-1effe4dd6f4429622ea188778445b76bd15acef7.tar.bz2
fix 46448, support api for passing updateAggr flag
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/api/query/ICubeElementFactory.java13
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeElementFactory.java18
2 files changed, 31 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/api/query/ICubeElementFactory.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/api/query/ICubeElementFactory.java
index 5cec0ab..0707cd4 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/api/query/ICubeElementFactory.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/api/query/ICubeElementFactory.java
@@ -51,6 +51,19 @@ public interface ICubeElementFactory
ILevelDefinition[] axisQulifierLevel, Object[] axisQulifierValue );
/**
+ * @param filterExpr
+ * @param targetLevel
+ * @param axisQulifierLevel
+ * @param axisQulifierValue
+ * @param updateAggr
+ * @return
+ */
+ public ICubeFilterDefinition creatCubeFilterDefinition(
+ IBaseExpression filterExpr, ILevelDefinition targetLevel,
+ ILevelDefinition[] axisQulifierLevel, Object[] axisQulifierValue,
+ boolean updateAggr );
+
+ /**
*
* @param targetLevels
* @param operator
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeElementFactory.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeElementFactory.java
index 4420dea..2b22715 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeElementFactory.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeElementFactory.java
@@ -69,6 +69,24 @@ public class CubeElementFactory implements ICubeElementFactory
/**
* create a new ICubeFilterDefinition instance.
+ *
+ * @return
+ */
+ public ICubeFilterDefinition creatCubeFilterDefinition(
+ IBaseExpression filterExpr, ILevelDefinition targetLevel,
+ ILevelDefinition[] axisQulifierLevel, Object[] axisQulifierValue,
+ boolean updateAggr )
+ {
+ CubeFilterDefinition cubeFilterDefinition = new CubeFilterDefinition( filterExpr,
+ targetLevel,
+ axisQulifierLevel,
+ axisQulifierValue );
+ cubeFilterDefinition.setUpdateAggregation( updateAggr );
+ return cubeFilterDefinition;
+ }
+
+ /**
+ * create a new ICubeFilterDefinition instance.
* @return
*/
public IFilterDefinition creatLevelMemberFilterDefinition(