Skip to content

Commit

Permalink
Document and revise OlapDatabaseMetaData methods; write unit tests fo…
Browse files Browse the repository at this point in the history
…r all methods; implement methods in mondrian's olap4j driver.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@35 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Oct 23, 2007
1 parent 6ff349d commit f689ac9
Show file tree
Hide file tree
Showing 13 changed files with 1,249 additions and 378 deletions.
38 changes: 25 additions & 13 deletions doc/olap4j_fs.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h1>olap4j Functional Specification</h1>
<p>Authors: Julian Hyde, Barry Klawans<br>
Version: 0.89.2-dev (draft)<br>
Revision: $Id$
(<a href="http://svn.sourceforge.net/viewvc/olap4j/trunk/doc/olap4j_fs.html?view=log">log</a>)<br>
(<a href="http://olap4j.svn.sourceforge.net/viewvc/olap4j/trunk/doc/olap4j_fs.html?view=log">log</a>)<br>
Last modified: September 21<sup>st</sup>, 2007.</p>
<hr noshade="noshade">

Expand Down Expand Up @@ -548,8 +548,8 @@ <h4>2.2.1. <a name="Connection_pooling">Connection pooling</a></h4>
OlapStatement statement = olapConnection.createOlapStatement();</div>

<p>The <a class="javadoc" href="api/org/olap4j/OlapStatement.html">OlapStatement</a>,
<a class="javadoc" href="api/org/olap4j/OlapPreparedStatement.html">OlapPreparedStatement</a>,
and <a class="javadoc" href="api/org/olap4j/OlapResult.html">OlapResult</a>
<a class="javadoc" href="api/org/olap4j/PreparedOlapStatement.html">PreparedOlapStatement</a>,
and <a class="javadoc" href="api/org/olap4j/CellSet.html">CellSet</a>
interfaces also extend <code>OlapWrapper</code>, and can be accessed similarly.</p>

<p>If connection pooling is not being used, then the object returned by the
Expand Down Expand Up @@ -1346,17 +1346,9 @@ <h4>2.7.3.
<th>Metadata element</th>
</tr>
<tr>
<td>not supported</td>
<td>
not supported</td>
<td>
<a class="javadoc" href="api/org/olap4j/metadata/Database.html">Database</a></td>
</tr>
<tr>
<td>not supported</td>
<td>DBSCHEMA_CATALOGS</td>
<td>
<a class="javadoc" href="http://java.sun.com/javase/6/docs/api/java/sql/DatabaseMetaData.html#getCatalogs()">
DatabaseMetaData.getCatalogs</a></td>
<a class="javadoc" href="http://java.sun.com/javase/6/docs/api/java/sql/DatabaseMetaData.html#getCatalogs()">DatabaseMetaData.getCatalogs</a></td>
<td>
<a class="javadoc" href="api/org/olap4j/metadata/Catalog.html">Catalog</a></td>
</tr>
Expand All @@ -1368,6 +1360,26 @@ <h4>2.7.3.
<td>
<a class="javadoc" href="api/org/olap4j/metadata/Schema.html">Schema</a></td>
</tr>
<tr>
<td>DBSCHEMA_COLUMNS</td>
<td>not supported</td>
<td>not supported</td>
</tr>
<tr>
<td>DBSCHEMA_PROVIDER_TYPES</td>
<td>not supported</td>
<td>not supported</td>
</tr>
<tr>
<td>DBSCHEMA_TABLES</td>
<td>not supported</td>
<td>not supported</td>
</tr>
<tr>
<td>DBSCHEMA_TABLES_INFO</td>
<td>not supported</td>
<td>not supported</td>
</tr>
<tr>
<td>DISCOVER_DATASOURCES</td>
<td>
Expand Down
8 changes: 2 additions & 6 deletions doc/tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,9 @@ Testing
* Remove site-specifics from test code.
* Ensure that there is a unit test for every method in every public class or interface.
* Write unit test for metadata classes.
* Write unit test for OlapDatabaseMetadata.getXxx methods
* Internationalization test, including Connection.getLocale(), Query.getLocale(), and all methods with Locale methods or results
* Internationalization test, including Connection.getLocale(), Query.getLocale(), and all methods with Locale methods or results
* Test access control. The metadata (e.g. members & hierarchies) should reflect what the current user/role can see. For example, USA.CA.SF has no children. This test should test every method which returns a metadata element or collection of metadata elements.
* ConnectionTest (301, 12) // todo: call getCubes with a pattern for cube name and schema name
* ConnectionTest (303, 12) // todo: call getCubes with a different schema
* ConnectionTest (367, 12) // todo: More tests required for other methods on DatabaseMetaData
* ConnectionTest (428, 8) // todo: test statement with no slicer
* ConnectionTest (428, 8) // todo: test statement with no slicer
* ConnectionTest (596, 12) // todo: test all of the PreparedOlapStatement.setXxx methods
* Test methods in class Cell. (see ConnectionTest.testCell)
* Test methods in class CellSetAxis. (see ConnectionTest.testCellSetAxis)
Expand Down
Loading

0 comments on commit f689ac9

Please sign in to comment.