forked from olap4j/olap4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In mondrian driver, create dual implementations of key JDBC objects t…
…o allow running against both JDBC 3.0 (JDK 1.5) and JDBC 4.0 (JDK 1.6); add OlapWrapper for JDBC 3.0 users, who have no access to java.sql.Wrapper methods; implement OlapPreparedStatement in mondrian driver. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@22 c6a108a4-781c-0410-a6c6-c2d559e19af0
- Loading branch information
1 parent
bddae98
commit 7a691f0
Showing
38 changed files
with
2,373 additions
and
794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
// $Id: $ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2007-2007 Julian Hyde | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
*/ | ||
package mondrian.olap4j; | ||
|
||
import mondrian.olap.Result; | ||
|
||
import java.util.Properties; | ||
import java.sql.Connection; | ||
import java.sql.SQLException; | ||
|
||
/** | ||
* Instantiates classes to implement the olap4j API against the | ||
* Mondrian OLAP engine. | ||
* | ||
* <p>There are implementations for JDBC 3.0 (which occurs in JDK 1.5) | ||
* and JDBC 4.0 (which occurs in JDK 1.6). | ||
* | ||
* @author jhyde | ||
* @version $Id: $ | ||
* @since Jun 14, 2007 | ||
*/ | ||
interface Factory { | ||
Connection newConnection(String url, Properties info) throws SQLException; | ||
|
||
EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection); | ||
|
||
MondrianOlap4jCellSet newCellSet( | ||
MondrianOlap4jStatement olap4jStatement, | ||
Result result); | ||
|
||
MondrianOlap4jPreparedStatement newPreparedStatement( | ||
String mdx, MondrianOlap4jConnection olap4jConnection); | ||
|
||
MondrianOlap4jDatabaseMetaData newDatabaseMetaData( | ||
MondrianOlap4jConnection olap4jConnection); | ||
} | ||
|
||
// End Factory.java |
Oops, something went wrong.