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.
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@81 c6a108a4-781c-0410-a6c6-c2d559e19af0
- Loading branch information
1 parent
af33fc9
commit 6a62a7d
Showing
2 changed files
with
45 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
// 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) 2008-2008 Julian Hyde | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
*/ | ||
package org.olap4j; | ||
|
||
import javax.sql.DataSource; | ||
import java.sql.SQLException; | ||
|
||
/** | ||
* <p>A factory for connections to the physical OLAP data source that this | ||
* <code>OlapDataSource</code> object represents. | ||
* | ||
* <p><code>OlapDataSource</code> is a refinement of | ||
* {@link javax.sql.DataSource} whose <code>getConnection</code> methods | ||
* return {@link org.olap4j.OlapConnection} objects rather than mere | ||
* {@link java.sql.Connection}s. | ||
* | ||
* @author jhyde | ||
* @version $Id: $ | ||
* @since Mar 25, 2008 | ||
*/ | ||
public interface OlapDataSource extends DataSource { | ||
|
||
// override with more specific return type | ||
OlapConnection getConnection() throws SQLException; | ||
|
||
// override with more specific return type | ||
OlapConnection getConnection( | ||
String username, | ||
String password) | ||
throws SQLException; | ||
} | ||
|
||
// End OlapDataSource.java |