From 35f2e94ea6bf42f277f8e24558ff218a6f6b31bd Mon Sep 17 00:00:00 2001 From: Paul Stoellberger Date: Mon, 7 Feb 2011 01:23:12 +0000 Subject: [PATCH] small harmonization of including member vs. level git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@402 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- src/org/olap4j/query/QueryDimension.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/olap4j/query/QueryDimension.java b/src/org/olap4j/query/QueryDimension.java index 2951e40..38a05b9 100644 --- a/src/org/olap4j/query/QueryDimension.java +++ b/src/org/olap4j/query/QueryDimension.java @@ -151,12 +151,14 @@ public Selection createSelection(Member member) { * query using the {@link Selection.Operator#MEMBERS} selection operator. * @param member The member to select and include in the query. */ - public void include(Level level) { + public Selection include(Level level) { if (level.getDimension().equals(this.dimension)) { Selection selection = query.getSelectionFactory().createLevelSelection(level); this.include(selection); + return selection; } + return null; } /** * Selects members and includes them in the query.