Skip to content

Commit

Permalink
Minor corrections and cosmetic changes to functional specification.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@440 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Apr 10, 2011
1 parent 6308b28 commit 9bb25d4
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions doc/olap4j_fs.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ <h4>2.1.5. <a name="The_OlapException_class">The OlapException class</a></h4>

<ul>
<li><code>Region getRegion()</code></li>
<li><code>setRegion(Region region)</code></li>
<li><code>void setRegion(Region region)</code></li>
<li><code>Object getContext()</code></li>
<li><code>void setContext(Object context)</code></li>
</ul>
Expand Down Expand Up @@ -732,7 +732,6 @@ <h4>2.2.2. <a name="OlapConnection">The OlapConnection interface</a></h4>
Methods:</p>

<ul>

<li><code>String getCatalog()</code> // returns the name of the current catalog (inherited from Connection)</li>
<li><code>Catalog getOlapCatalog()</code> // returns the current catalog object</li>
<li><code>NamedList&lt;Catalog&gt; getOlapCatalogs()</code> // returns a list of all catalogs</li>
Expand All @@ -752,8 +751,7 @@ <h4>2.2.2. <a name="OlapConnection">The OlapConnection interface</a></h4>
<li><code>Scenario createScenario()</code> // creates a scenario</li>
<li><code>void setScenario(Scenario scenario)</code> // sets the current scenario for this connection</li>
<li><code>Scenario getScenario()</code> // returns the current scenario for this connection</li>
<li><code>MdxParserFactory getParserFactory()</code> // returns a
factory to create MDX parsers</li>
<li><code>MdxParserFactory getParserFactory()</code> // returns a factory to create MDX parsers</li>
</ul>

<h4>2.2.3. <a name="The_OlapWrapper_interface">The OlapWrapper interface</a></h4>
Expand All @@ -770,11 +768,9 @@ <h4>2.2.3. <a name="The_OlapWrapper_interface">The OlapWrapper interface</a></h4
will run only on JDBC 4.0 and later, <code>Wrapper</code> can be used,
and <code>OlapWrapper</code> can be ignored.</p>

<p>
Methods:</p>
<p>Methods:</p>

<ul>

<li><code>boolean isWrapperFor(Class&lt;?&gt; iface)</code> //
returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does</li>
Expand Down Expand Up @@ -811,18 +807,21 @@ <h4>2.3.1. <a name="OlapStatement">The OlapStatement interface</a></h4>
is an object used to execute a static MDX statement and return the
result it
produces.</p>

<p>It has methods to execute an MDX query represented both as a string and as a
parse tree.</p>

<p>Methods:</p>

<ul>

<li><code>CellSet executeOlapQuery(String mdx)</code> // executes an MDX statement</li>
<li><code>CellSet executeOlapQuery(SelectNode selectNode)</code> // executes an MDX statement expressed as a parse tree</li>
<li><code>OlapConnection getConnection()</code> // returns the current connection (overrides Statement method)</li>
<li><code>addListener(Granularity, CellSetListener)</code> // adds a listener to be notified of events to CellSets created by this statement</li>
</ul>

<h4>2.3.2. <a name="PreparedOlapStatement">The PreparedOlapStatement interface</a></h4>

<p><a class="javadoc" href="api/org/olap4j/PreparedOlapStatement.html">PreparedOlapStatement</a>
(extends
<a class="javadoc" href="http://download.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html">java.sql.PreparedStatement</a>)
Expand Down Expand Up @@ -859,18 +858,22 @@ <h4>2.3.2. <a name="PreparedOlapStatement">The PreparedOlapStatement interface</
<li><code>CellSetMetaData getMetaData()</code></li>
<li><code>OlapParameterMetaData getParameterMetaData()</code></li>
</ul>

<h4>2.3.3. <a name="OlapParameterMetaData">The OlapParameterMetaData interface</a></h4>

<p><a class="javadoc" href="api/org/olap4j/OlapParameterMetaData.html">OlapParameterMetaData</a>
(extends
<a class="javadoc" href="http://download.oracle.com/javase/6/docs/api/java/sql/ParameterMetaData.html">java.sql.ParameterMetaData</a>)
describes parameters of a <code>
PreparedOlapStatement</code>.</p>
<a class="javadoc"
href="http://download.oracle.com/javase/6/docs/api/java/sql/ParameterMetaData.html">java.sql.ParameterMetaData</a>)
describes parameters of a <code> PreparedOlapStatement</code>. Note that regular
JDBC parameters (bind variables) have ordinals but not names; olap4j parameters
have both ordinals and names.</p>

<p>Additional methods:</p>

<ul>
<li><code>getName()</code></li>
<li><code>getOlapType(int param)</code></li>
<li><code>String getParameterName(int param)</code> // returns the designated parameter's name</li>
<li><code>getParameterOlapType(int param)</code> // returns the designated parameter's OLAP type</li>
</ul>

<h4>2.3.4. <a name="CellSet">The CellSet interface</a></h4>
Expand All @@ -885,7 +888,6 @@ <h4>2.3.4. <a name="CellSet">The CellSet interface</a></h4>
are applicable:</p>

<ul>

<li><a class="javadoc" href="http://download.oracle.com/javase/6/docs/api/java/sql/ResultSet.html#clearWarnings%28%29">clearWarnings()</a></li>
<li><a class="javadoc" href="http://download.oracle.com/javase/6/docs/api/java/sql/ResultSet.html#close%28%29">close()</a></li>
<li><a class="javadoc" href="http://download.oracle.com/javase/6/docs/api/java/sql/ResultSet.html#getConcurrency%28%29">getConcurrency()</a></li>
Expand All @@ -898,7 +900,6 @@ <h4>2.3.4. <a name="CellSet">The CellSet interface</a></h4>
result:</p>

<ul>

<li><code>List&lt;CellSetAxis&gt; getAxes()</code></li>
<li><code>CellSetAxis getFilterAxis()</code></li>
<li><code>Cell getCell(List&lt;Integer&gt; coordinates)</code></li>
Expand Down Expand Up @@ -1043,7 +1044,6 @@ <h4>2.3.9. <a name="Cell">The Cell interface</a></h4>
<p>Methods:</p>

<ul>

<li><code>CellSet getCellSet()</code></li>
<li><code>int getOrdinal()</code></li>
<li><code>List&lt;Integer&gt; getCoordinateList()</code></li>
Expand Down Expand Up @@ -1434,6 +1434,7 @@ <h5>2.7.2.1. <a name="MetadataElement">The MetadataElement interface</a></h5>
name and unique-name properties (not localized), and localized caption and
description (see <a href="#Internationalization">Internationalization</a>).</p>

<p>Methods:</p>
<ul>
<li><code>String getName()</code> // name of this metadata element</li>
<li><code>String getUniqueName()</code> // unique name of this metadata element</li>
Expand All @@ -1451,7 +1452,7 @@ <h5>2.7.2.2. <a name="Database">The Database interface</a></h5>
OLAP server.</p>

<p>To obtain the collection of databases in the current server, call the
<code>OlapConnection.getDatabases()</code> method.</p>
<code>OlapConnection.getOlapDatabases()</code> method.</p>

<p>Methods:</p>

Expand All @@ -1468,14 +1469,14 @@ <h5>2.7.2.2. <a name="Database">The Database interface</a></h5>
<h5>2.7.2.3. <a name="Catalog">The Catalog interface</a></h5>

<p>A <a class="javadoc" href="api/org/olap4j/metadata/Catalog.html">Catalog</a>
is the highest level element in the hierarchy of metadata objects. A
catalog contains one or more schemas.</p>
is the second highest level element in the hierarchy of metadata objects. A
catalog belongs to a database and contains one or more schemas.</p>

<p>Some OLAP servers may only have one catalog. Mondrian is one such OLAP
server; its sole catalog is always called "LOCALDB".</p>

<p>To obtain the collection of catalogs in the current server, call the
<code>OlapConnection.getCatalogs()</code> method.</p>
<code>OlapConnection.getOlapCatalogs()</code> method.</p>

<p>Methods:</p>
<ul>
Expand All @@ -1493,15 +1494,19 @@ <h5>2.7.2.4. <a name="Schema">The Schema interface</a></h5>

<p>It belongs to a catalog and contains a number of cubes and shared dimensions.</p>

<p>Methods:</p>
<ul>
<li><code>Catalog geCatalog()</code> // returns this schema's parent catalog</li>
<li><code>Catalog getCatalog()</code> // returns this schema's parent catalog</li>
<li><code>String getName()</code> // returns the name of this catalog</li>
<li><code>NamedList&lt;Dimension&gt; getSharedDimensions()</code></li>
<li><code>NamedList&lt;Cube&gt; getCubes()</code></li>
<li><code>Collection&lt;Locale&gt; getSupportedLocales()</code> (see <a href="#Internationalization">
Internationalization</a>)</li>
</ul>

<p>To obtain the collection of schemas in the current server, call the
<code>OlapConnection.getOlapSchemas()</code> method.</p>

<h5>2.7.2.5. <a name="Cube">The Cube interface</a></h5>

<p>A <a class="javadoc" href="api/org/olap4j/metadata/Cube.html">Cube</a> is the
Expand All @@ -1511,6 +1516,7 @@ <h5>2.7.2.5. <a name="Cube">The Cube interface</a></h5>
of measures. It may also have a collection of named sets, each defined by a
formula.</p>

<p>Methods:</p>
<ul>
<li><code>NamedList&lt;Dimension&gt; getDimensions()</code></li>
<li><code>NamedList&lt;Hierarchy&gt; getHierarchies()</code></li>
Expand Down Expand Up @@ -1547,8 +1553,11 @@ <h5>2.7.2.7. <a name="Hierarchy">The Hierarchy interface</a></h5>
(extends <a class="javadoc" href="api/org/olap4j/metadata/MetadataElement.html">
MetadataElement</a>) is an organization of the set of members in a dimension and
their positions relative to one another.</p>

<p>A hierarchy is a collection of levels, each of which is a category of similar
members.</p>

<p>Methods:</p>
<ul>
<li><code>Dimension getDimension()</code></li>
<li><code>String getName()</code></li>
Expand All @@ -1564,6 +1573,8 @@ <h5>2.7.2.8. <a name="Level">The Level interface</a></h5>
(extends <a class="javadoc" href="api/org/olap4j/metadata/MetadataElement.html">
MetadataElement</a>) is a group of members in a hierarchy, all with the same
attributes and at the same depth in the hierarchy.</p>

<p>Methods:</p>
<ul>
<li><code>int getDepth()</code></li>
<li><code>Hierarchy getHierarchy()</code></li>
Expand All @@ -1579,6 +1590,7 @@ <h5>2.7.2.9. <a name="Member">The Member interface</a></h5>
(extends <a class="javadoc" href="api/org/olap4j/metadata/MetadataElement.html">
MetadataElement</a>) is a data value in an OLAP dimension.</p>

<p>Methods:</p>
<ul>
<li><code>String getName()</code></li>
<li><code>NamedList&lt;Member&gt; getChildMembers()</code></li>
Expand Down Expand Up @@ -1610,6 +1622,7 @@ <h5>2.7.2.10. <a name="Measure">The Measure interface</a></h5>

<p>Every measure is a member of a special dimension called "Measures".</p>

<p>Methods:</p>
<ul>
<li><code>boolean isVisible()</code></li>
<li><code>Aggregator getAggregator()</code></li>
Expand Down Expand Up @@ -1654,6 +1667,8 @@ <h5>2.7.2.12. <a name="NamedSet">The NamedSet interface</a></h5>
(extends <a class="javadoc" href="api/org/olap4j/metadata/MetadataElement.html">
MetadataElement</a>) describes a set whose value is determined by an MDX
expression. It belongs to a cube.</p>

<p>Methods:</p>
<ul>
<li><code>Cube getCube()</code></li>
<li><code>Expression getExpression()</code></li>
Expand Down Expand Up @@ -3743,6 +3758,7 @@ <h3>2.10. <a name="Scenarios"></a>Scenarios</h3>
<ul>
<li><code>String getId()</code> // returns the unique identifier of this scenario</li>
</ul>

<p>Other methods relating to scenarios:</p>
<ul>
<li><code>Scenario OlapConnection.createScenario()</code> // creates a scenario</li>
Expand Down

0 comments on commit 9bb25d4

Please sign in to comment.