Skip to content

Commit

Permalink
Fix bug 3009981 : XmlaOlap4jCube shouldnt populate namedsets immediat…
Browse files Browse the repository at this point in the history
…ely > sets being populated when accessed for the first time

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@318 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
pstoellberger committed Jun 10, 2010
1 parent 24b7010 commit 1a1d929
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/org/olap4j/driver/xmla/XmlaOlap4jCube.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class XmlaOlap4jCube implements Cube, Named
new ArrayList<XmlaOlap4jMeasure>();
private final HashMap<String, XmlaOlap4jMeasure> measuresMap =
new HashMap<String, XmlaOlap4jMeasure>();
private final NamedList<XmlaOlap4jNamedSet> namedSets =
new NamedListImpl<XmlaOlap4jNamedSet>();
private final NamedList<XmlaOlap4jNamedSet> namedSets;
private final MetadataReader metadataReader;

/**
Expand Down Expand Up @@ -99,10 +98,9 @@ class XmlaOlap4jCube implements Cube, Named
}

// populate named sets
olap4jConnection.populateList(
namedSets,
context,
namedSets = new DeferredNamedListImpl<XmlaOlap4jNamedSet>(
XmlaOlap4jConnection.MetadataRequest.MDSCHEMA_SETS,
context,
new XmlaOlap4jConnection.NamedSetHandler(),
restrictions);
}
Expand Down

0 comments on commit 1a1d929

Please sign in to comment.