Frage

I develop the web application with Mondrian OLAP engine with Olap4j and should present/display data to user. From Java code i create OlapConnection and try get all cubes from database.

OlapConnection c = (OlapConnection) DriverManager.getConnection(connStr);
OlapDatabaseMetaData  md = c.getMetaData();
ResultSet cubes = (Cube)md.getCubes("wdi", "", "wdi");

But i have only ResultSet type, how i can get all cubes by type org.olap4j.metadata.Cube? Thanks for any help.

War es hilfreich?

Lösung

org.olap4j.metadata.Cube cube = c.getOlapSchema().getCubes().get("wdi");

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top