From 6a62a7deb043a20c444261276298bcd7bb240cce Mon Sep 17 00:00:00 2001
From: Julian Hyde olap4j Specification
Version: 0.9.5 (beta)
Revision: $Id$
(log)
-Last modified: March 5th, 2008.
Same functionality as JDBC.
Same functionality as JDBC.
-Extension to DataSource
that returns OlapConnection
+objects rather than mere java.sql.Connection
objects.
OlapException
(extends
diff --git a/src/org/olap4j/OlapDataSource.java b/src/org/olap4j/OlapDataSource.java
new file mode 100644
index 0000000..03380a4
--- /dev/null
+++ b/src/org/olap4j/OlapDataSource.java
@@ -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;
+
+/**
+ * A factory for connections to the physical OLAP data source that this
+ * OlapDataSource
object represents.
+ *
+ * OlapDataSource
is a refinement of
+ * {@link javax.sql.DataSource} whose getConnection
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