Skip to content

Commit

Permalink
small harmonization of including member vs. level
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@402 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
pstoellberger committed Feb 7, 2011
1 parent 828ad8f commit 35f2e94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/olap4j/query/QueryDimension.java
Expand Up @@ -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.
Expand Down

0 comments on commit 35f2e94

Please sign in to comment.