}
public List<Member> getMembers() throws OlapException {
final MondrianOlap4jConnection olap4jConnection =
olap4jSchema.olap4jCatalog.olap4jDatabaseMetaData.olap4jConnection;
final RolapConnection mondrianConnection =
olap4jConnection.getMondrianConnection();
return Locus.execute(
mondrianConnection,
"Reading members of level",
new Locus.Action<List<Member>>() {
public List<Member> execute() {
final mondrian.olap.SchemaReader schemaReader =
mondrianConnection.getSchemaReader().withLocus();
final List<mondrian.olap.Member> levelMembers =
schemaReader.getLevelMembers(level, true);
return new AbstractList<Member>() {
public Member get(int index) {
return olap4jConnection.toOlap4j(