From 9bb25d4938167e0f70992a1af7c1baa8e8011235 Mon Sep 17 00:00:00 2001
From: Julian Hyde 2.1.5. The OlapException class
@@ -732,7 +732,6 @@ Region getRegion()
setRegion(Region region)
void setRegion(Region region)
Object getContext()
void setContext(Object context)
2.2.2. The OlapConnection interface
Methods:
String getCatalog()
// returns the name of the current catalog (inherited from Connection)Catalog getOlapCatalog()
// returns the current catalog objectNamedList<Catalog> getOlapCatalogs()
// returns a list of all catalogsScenario createScenario()
// creates a scenariovoid setScenario(Scenario scenario)
// sets the current scenario for this connectionScenario getScenario()
// returns the current scenario for this connectionMdxParserFactory getParserFactory()
// returns a
-factory to create MDX parsersMdxParserFactory getParserFactory()
// returns a factory to create MDX parsersOlapWrapper
can be ignored.
--Methods:
+Methods:
boolean isWrapperFor(Class<?> iface)
//
returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that doesIt has methods to execute an MDX query represented both as a string and as a parse tree.
+Methods:
CellSet executeOlapQuery(String mdx)
// executes an MDX statementCellSet executeOlapQuery(SelectNode selectNode)
// executes an MDX statement expressed as a parse treeOlapConnection getConnection()
// returns the current connection (overrides Statement method)addListener(Granularity, CellSetListener)
// adds a listener to be notified of events to CellSets created by this statementPreparedOlapStatement (extends java.sql.PreparedStatement) @@ -859,18 +858,22 @@
CellSetMetaData getMetaData()
OlapParameterMetaData getParameterMetaData()
OlapParameterMetaData
(extends
-java.sql.ParameterMetaData)
-describes parameters of a
-PreparedOlapStatement
.
PreparedOlapStatement
. Note that regular
+JDBC parameters (bind variables) have ordinals but not names; olap4j parameters
+have both ordinals and names.
Additional methods:
getName()
getOlapType(int param)
String getParameterName(int param)
// returns the designated parameter's namegetParameterOlapType(int param)
// returns the designated parameter's OLAP typeList<CellSetAxis> getAxes()
CellSetAxis getFilterAxis()
Cell getCell(List<Integer> coordinates)
Methods:
CellSet getCellSet()
int getOrdinal()
List<Integer> getCoordinateList()
Methods:
String getName()
// name of this metadata elementString getUniqueName()
// unique name of this metadata elementTo obtain the collection of databases in the current server, call the
-OlapConnection.getDatabases()
method.
OlapConnection.getOlapDatabases()
method.
Methods:
@@ -1468,14 +1469,14 @@A Catalog -is the highest level element in the hierarchy of metadata objects. A -catalog contains one or more schemas.
+is the second highest level element in the hierarchy of metadata objects. A +catalog belongs to a database and contains one or more schemas.Some OLAP servers may only have one catalog. Mondrian is one such OLAP server; its sole catalog is always called "LOCALDB".
To obtain the collection of catalogs in the current server, call the
-OlapConnection.getCatalogs()
method.
OlapConnection.getOlapCatalogs()
method.
Methods:
It belongs to a catalog and contains a number of cubes and shared dimensions.
+Methods:
Catalog geCatalog()
// returns this schema's parent catalogCatalog getCatalog()
// returns this schema's parent catalogString getName()
// returns the name of this catalogNamedList<Dimension> getSharedDimensions()
NamedList<Cube> getCubes()
To obtain the collection of schemas in the current server, call the
+OlapConnection.getOlapSchemas()
method.
A Cube is the @@ -1511,6 +1516,7 @@
Methods:
NamedList<Dimension> getDimensions()
NamedList<Hierarchy> getHierarchies()
A hierarchy is a collection of levels, each of which is a category of similar members.
+ +Methods:
Dimension getDimension()
String getName()
Methods:
int getDepth()
Hierarchy getHierarchy()
Methods:
String getName()
NamedList<Member> getChildMembers()
Every measure is a member of a special dimension called "Measures".
+Methods:
boolean isVisible()
Aggregator getAggregator()
Methods:
Cube getCube()
Expression getExpression()
String getId()
// returns the unique identifier of this scenarioOther methods relating to scenarios:
Scenario OlapConnection.createScenario()
// creates a scenario