Feature: Include MySQL
diff --git a/derby/org.eclipse.gemini.dbaccess.derby/META-INF/MANIFEST.MF b/derby/org.eclipse.gemini.dbaccess.derby/META-INF/MANIFEST.MF
index 3ffb973..4d5cb67 100644
--- a/derby/org.eclipse.gemini.dbaccess.derby/META-INF/MANIFEST.MF
+++ b/derby/org.eclipse.gemini.dbaccess.derby/META-INF/MANIFEST.MF
@@ -10,7 +10,9 @@
  org.apache.derby.client.am,

  org.apache.derby.jdbc,

  org.osgi.framework;version="[1.3,2)",

- org.osgi.service.jdbc;version="[1.0,2.0)"

+ org.osgi.service.jdbc;version="[1.0,2.0)",

+ org.eclipse.gemini.dbaccess,

+ org.eclipse.gemini.jdbc

 Bundle-ActivationPolicy: lazy

 

 

diff --git a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/Activator.java b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/Activator.java
index 7a251ac..086c185 100644
--- a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/Activator.java
+++ b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/Activator.java
@@ -24,6 +24,8 @@
 

 import org.osgi.service.jdbc.DataSourceFactory;

 

+import org.eclipse.gemini.dbaccess.derby.service.DerbyServiceProperties;

+

 /**

  * Creates a {@link DataSourceFactory} for each of the available Derby JDBC driver types.

  */

@@ -32,39 +34,52 @@
     private ServiceRegistration embeddedService, clientService, embeddedService4, clientService4;	

 	

     public void start(BundleContext context) throws Exception {

-        System.out.println("Gemini DBAccess Derby starting");

+        System.out.println("Gemini DBAccess - Derby JDBC starting");

         Hashtable<String,String> props = new Hashtable<String,String>();

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, DataSourceFactoryConstants.DERBY_DRIVER_NAME);

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, 

+                  DerbyServiceProperties.DERBY_DRIVER_NAME);

         

-        /*=== Register the JDBC 3 drivers ===*/

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, DataSourceFactoryConstants.JDBC_3_DRIVER_VERSION);

+        /*******************************/

+        /* Register the JDBC 3 drivers */

+        /*******************************/

+

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, 

+                  DerbyServiceProperties.JDBC_3_DRIVER_VERSION);

 

         // Register the embedded driver

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, DataSourceFactoryConstants.DERBY_EMBEDDED_DRIVER_CLASS);

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, 

+                  DerbyServiceProperties.DERBY_EMBEDDED_DRIVER_CLASS);

         embeddedService = context.registerService( 

                 DataSourceFactory.class.getName(),

                 new EmbeddedDataSourceFactory(false), 

                 props);

         

         // Register the client driver 

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, DataSourceFactoryConstants.DERBY_CLIENT_DRIVER_CLASS);

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, 

+                  DerbyServiceProperties.DERBY_CLIENT_DRIVER_CLASS);

         clientService = context.registerService( 

                 DataSourceFactory.class.getName(),

                 new ClientDataSourceFactory(false),

                 props);

 

-        /*=== Register the JDBC 4 drivers ===*/

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, DataSourceFactoryConstants.JDBC_4_DRIVER_VERSION);

+        /*******************************/

+        /* Register the JDBC 4 drivers */

+        /*******************************/

+

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, 

+                  DerbyServiceProperties.JDBC_4_DRIVER_VERSION);

         

         // Register the embedded driver

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, DataSourceFactoryConstants.DERBY_EMBEDDED_DRIVER_CLASS);

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, 

+                  DerbyServiceProperties.DERBY_EMBEDDED_DRIVER_CLASS);

         embeddedService4 = context.registerService( 

                 DataSourceFactory.class.getName(),

                 new EmbeddedDataSourceFactory(true), 

                 props);

         

         // Register the client driver 

-        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, DataSourceFactoryConstants.DERBY_CLIENT_DRIVER_CLASS);

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, 

+                  DerbyServiceProperties.DERBY_CLIENT_DRIVER_CLASS);

         clientService4 = context.registerService( 

                 DataSourceFactory.class.getName(),

                 new ClientDataSourceFactory(true),

diff --git a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/ClientDataSourceFactory.java b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/ClientDataSourceFactory.java
index e5095d1..694156c 100644
--- a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/ClientDataSourceFactory.java
+++ b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/ClientDataSourceFactory.java
@@ -10,13 +10,11 @@
  * You may elect to redistribute this code under either of these licenses.

  *

  * Contributors:

- *     mkeith - CLient/Server Derby JDBC support 

+ *     mkeith - Client/Server Derby JDBC support 

  ******************************************************************************/

 

 package org.eclipse.gemini.dbaccess.derby;

 

-import java.util.Properties;

-

 import java.sql.Driver;

 import java.sql.SQLException;

 

@@ -24,6 +22,8 @@
 import javax.sql.ConnectionPoolDataSource;

 import javax.sql.XADataSource;

 

+import org.eclipse.gemini.dbaccess.AbstractDataSourceFactory;

+

 import org.apache.derby.jdbc.ClientConnectionPoolDataSource;

 import org.apache.derby.jdbc.ClientConnectionPoolDataSource40;

 import org.apache.derby.jdbc.ClientDriver;

@@ -32,8 +32,6 @@
 import org.apache.derby.jdbc.ClientXADataSource;

 import org.apache.derby.jdbc.ClientXADataSource40;

 

-import org.osgi.service.jdbc.DataSourceFactory;

-

 /**

  * A factory for creating Derby network data sources. The properties specified

  * in the create methods determine how the created object is configured.

@@ -61,84 +59,38 @@
  */

 public class ClientDataSourceFactory extends AbstractDataSourceFactory {

     

+    /** Option to indicate whether to use JDBC 4.0 flavor of the driver */

+    boolean jdbc4 = true;

+

     public ClientDataSourceFactory() {}

     public ClientDataSourceFactory(boolean jdbc4) {

         this.jdbc4 = jdbc4;    

     }

-    

-    /**

-     * Create a Derby DataSource object.

-     * 

-     * @param props The properties that define the DataSource implementation to

-     *        create and how the DataSource is configured.

-     * @return The configured DataSource.

-     * @throws SQLException

-     * @see org.osgi.service.jdbc.DataSourceFactory#createDataSource(java.util.Properties)

-     */

-    public DataSource createDataSource(Properties props) throws SQLException {

-        if (props == null) props = new Properties();

-        if (props.get(DataSourceFactory.JDBC_URL) != null) {

-            return new UrlBasedDriverDataSource(props, false);

-        } else {

-            DataSource dataSource = (jdbc4) 

-                ? new ClientDataSource40()

-                : new ClientDataSource();

-            setDataSourceProperties(dataSource, props);

-            return dataSource;

-        }

+

+    @Override

+    public Driver newJdbcDriver() throws SQLException {

+        return new ClientDriver();

     }

 

-    /**

-     * Create a Derby ConnectionPoolDataSource object.

-     * 

-     * @param props The properties that define the ConnectionPoolDataSource

-     *        implementation to create and how the ConnectionPoolDataSource is

-     *        configured.

-     * @return The configured ConnectionPoolDataSource.

-     * @throws SQLException

-     * @see org.osgi.service.jdbc.DataSourceFactory#createConnectionPoolDataSource(java.util.Properties)

-     */

-    public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException {

-        if (props == null) props = new Properties();

-        ConnectionPoolDataSource dataSource = (jdbc4) 

+    @Override

+    public DataSource newDataSource() throws SQLException {

+        return jdbc4

+            ? new ClientDataSource40()

+            : new ClientDataSource();

+    }

+

+    @Override

+    public ConnectionPoolDataSource newConnectionPoolDataSource() 

+            throws SQLException {

+        return jdbc4 

             ? new ClientConnectionPoolDataSource40()

             : new ClientConnectionPoolDataSource();

-        setDataSourceProperties(dataSource, props);

-        return dataSource;

     }

 

-    /**

-     * Create a Derby XADataSource object.

-     * 

-     * @param props The properties that define the XADataSource implementation

-     *        to create and how the XADataSource is configured.

-     * @return The configured XADataSource.

-     * @throws SQLException

-     * @see org.osgi.service.jdbc.DataSourceFactory#createXADataSource(java.util.Properties)

-     */

-    public XADataSource createXADataSource(Properties props) throws SQLException {

-        if (props == null) props = new Properties();

-        XADataSource dataSource = (jdbc4) 

+    @Override

+    public XADataSource newXADataSource() throws SQLException {

+        return jdbc4 

             ? new ClientXADataSource40()

             : new ClientXADataSource();

-        setDataSourceProperties(dataSource, props);

-        return dataSource;

     }

-

-    /**

-     * Create a new org.apache.derby.jdbc.EmbeddedDriver.

-     * 

-     * @param props The properties used to configure the Driver.  Null 

-     *              indicates no properties.

-     *              If the property cannot be set on the Driver being 

-     *              created then a SQLException must be thrown.

-     * @return A configured org.apache.derby.jdbc.EmbeddedDriver.

-     * @throws SQLException If the org.apache.derby.jdbc.ClientDriver cannot be created.

-     */

-    public Driver createDriver(Properties props) throws SQLException {

-        // Properties not used when accessing the raw driver.

-        Driver driver = new ClientDriver();

-        setDataSourceProperties(driver, props);

-        return driver;

-    }  

 }
\ No newline at end of file
diff --git a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/EmbeddedDataSourceFactory.java b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/EmbeddedDataSourceFactory.java
index 9c40644..da33298 100644
--- a/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/EmbeddedDataSourceFactory.java
+++ b/derby/org.eclipse.gemini.dbaccess.derby/src/org/eclipse/gemini/dbaccess/derby/EmbeddedDataSourceFactory.java
@@ -11,12 +11,11 @@
  *

  * Contributors:

  *     JJ Snyder - Embedded Derby JDBC support 

+ *     mkeith - Inherit from abstract class

  ******************************************************************************/

 

 package org.eclipse.gemini.dbaccess.derby;

 

-import java.util.Properties;

-

 import java.sql.Driver;

 import java.sql.SQLException;

 

@@ -31,7 +30,8 @@
 import org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40;

 import org.apache.derby.jdbc.EmbeddedXADataSource;

 import org.apache.derby.jdbc.EmbeddedXADataSource40;

-import org.osgi.service.jdbc.DataSourceFactory;

+

+import org.eclipse.gemini.dbaccess.AbstractDataSourceFactory;

 

 /**

  * A factory for creating Derby embedded data sources. The properties specified

@@ -55,96 +55,39 @@
  *     props.put(DataSourceFactory.JDBC_URL, "jdbc:derby:myDB");

  */

 public class EmbeddedDataSourceFactory extends AbstractDataSourceFactory {

+

+    /** Option to indicate whether to use JDBC 4.0 flavor of the driver */

+    boolean jdbc4 = true;

     

     public EmbeddedDataSourceFactory() {}

     public EmbeddedDataSourceFactory(boolean jdbc4) {

         this.jdbc4 = jdbc4;    

     }

     

-    /**

-	 * Create a Derby DataSource object.

-	 * 

-	 * @param props The properties that define the DataSource implementation to

-	 *        create and how the DataSource is configured.

-	 * @return The configured DataSource.

-	 * @throws SQLException

-	 * @see org.osgi.service.jdbc.DataSourceFactory#createDataSource(java.util.Properties)

-	 */

-	public DataSource createDataSource(Properties props) throws SQLException {

-		if (props == null) {

-			props = new Properties();

-		}

-        if (props.get(DataSourceFactory.JDBC_URL) != null) {

-            return new UrlBasedDriverDataSource(props, true);

-        } else {

-    		DataSource dataSource = (jdbc4) 

-                ? new EmbeddedDataSource40()

-                : new EmbeddedDataSource();

-    		setDataSourceProperties(dataSource, props);

-    		return dataSource;

-        }

-	}

+    @Override

+    public Driver newJdbcDriver() throws SQLException {

+        return new EmbeddedDriver();

+    }

 

-	/**

-	 * Create a Derby ConnectionPoolDataSource object.

-	 * 

-	 * @param props The properties that define the ConnectionPoolDataSource

-	 *        implementation to create and how the ConnectionPoolDataSource is

-	 *        configured.

-	 * @return The configured ConnectionPoolDataSource.

-	 * @throws SQLException

-	 * @see org.osgi.service.jdbc.DataSourceFactory#createConnectionPoolDataSource(java.util.Properties)

-	 */

-	public ConnectionPoolDataSource createConnectionPoolDataSource(

-			Properties props) throws SQLException {

-		if (props == null) {

-			props = new Properties();

-		}

-		ConnectionPoolDataSource dataSource = (jdbc4) 

-		    ? new EmbeddedConnectionPoolDataSource40()

-	        : new EmbeddedConnectionPoolDataSource();

-		setDataSourceProperties(dataSource, props);

-		return dataSource;

-	}

+    @Override

+    public DataSource newDataSource() throws SQLException {

+        return jdbc4

+            ? new EmbeddedDataSource40()

+            : new EmbeddedDataSource();

+    }

 

-	/**

-	 * Create a Derby XADataSource object.

-	 * 

-	 * @param props The properties that define the XADataSource implementation

-	 *        to create and how the XADataSource is configured.

-	 * @return The configured XADataSource.

-	 * @throws SQLException

-	 * @see org.osgi.service.jdbc.DataSourceFactory#createXADataSource(java.util.Properties)

-	 */

-	public XADataSource createXADataSource(Properties props)

-			throws SQLException {

-		if (props == null) {

-			props = new Properties();

-		}

-        XADataSource dataSource = (jdbc4) 

+    @Override

+    public ConnectionPoolDataSource newConnectionPoolDataSource() 

+            throws SQLException {

+        return jdbc4 

+            ? new EmbeddedConnectionPoolDataSource40()

+            : new EmbeddedConnectionPoolDataSource();

+    }

+

+    @Override

+    public XADataSource newXADataSource() throws SQLException {

+        return jdbc4 

             ? new EmbeddedXADataSource40()

             : new EmbeddedXADataSource();

-		setDataSourceProperties(dataSource, props);

-		return dataSource;

-	}

-

-    /**

-     * Create a new org.apache.derby.jdbc.EmbeddedDriver.

-     * 

-     * @param props The properties used to configure the Driver.  Null 

-     *              indicates no properties.

-     *              If the property cannot be set on the Driver being 

-     *              created then a SQLException must be thrown.

-     * @return A configured org.apache.derby.jdbc.EmbeddedDriver.

-     * @throws SQLException If the org.apache.derby.jdbc.EmbeddedDriver cannot be created.

-     */

-	public Driver createDriver(Properties props) throws SQLException {

-		if (props == null) {

-			props = new Properties();

-		}

-		EmbeddedDriver driver = new EmbeddedDriver();

-		setDataSourceProperties(driver, props);

-		return driver;

-	}

-

+    }

 }

diff --git a/gemini.dbaccess.feature/feature.xml b/gemini.dbaccess.feature/feature.xml
index c5621f1..4c07f42 100644
--- a/gemini.dbaccess.feature/feature.xml
+++ b/gemini.dbaccess.feature/feature.xml
@@ -50,4 +50,18 @@
          version="0.0.0"

          unpack="false"/>

 

+   <plugin

+         id="org.eclipse.gemini.dbaccess.util"

+         download-size="0"

+         install-size="0"

+         version="0.0.0"

+         unpack="false"/>

+

+   <plugin

+         id="org.eclipse.gemini.dbaccess.mysql"

+         download-size="0"

+         install-size="0"

+         version="0.0.0"

+         unpack="false"/>

+

 </feature>

diff --git a/mvn_parent/pom.xml b/mvn_parent/pom.xml
index e8daedc..f1112a8 100644
--- a/mvn_parent/pom.xml
+++ b/mvn_parent/pom.xml
@@ -33,8 +33,11 @@
   <modules>

 	<module>../gemini.dbaccess.targetdef</module>

 	<module>../osgi.enterprise</module>

+	<module>../org.eclipse.gemini.dbaccess.util</module>

 	<module>../derby/org.apache.derby</module>

 	<module>../derby/org.eclipse.gemini.dbaccess.derby</module>

+	<module>../mysql/com.mysql.jdbc</module>

+	<module>../mysql/org.eclipse.gemini.dbaccess.mysql</module>

 	<module>../samples/org.eclipse.gemini.dbaccess.samples</module>

 	<module>../test/org.eclipse.gemini.dbaccess.test</module>

 	<module>../gemini.dbaccess.feature</module>

diff --git a/mysql/com.mysql.jdbc/.classpath b/mysql/com.mysql.jdbc/.classpath
new file mode 100644
index 0000000..c51c113
--- /dev/null
+++ b/mysql/com.mysql.jdbc/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<classpath>

+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>

+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>

+	<classpathentry excluding="**/.svn/*" kind="src" path="src"/>

+	<classpathentry kind="output" path="bin"/>

+</classpath>

diff --git a/mysql/com.mysql.jdbc/.gitignore b/mysql/com.mysql.jdbc/.gitignore
new file mode 100644
index 0000000..ea8c4bf
--- /dev/null
+++ b/mysql/com.mysql.jdbc/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/mysql/com.mysql.jdbc/.project b/mysql/com.mysql.jdbc/.project
new file mode 100644
index 0000000..25464f9
--- /dev/null
+++ b/mysql/com.mysql.jdbc/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<projectDescription>

+	<name>com.mysql.jdbc</name>

+	<comment></comment>

+	<projects>

+	</projects>

+	<buildSpec>

+		<buildCommand>

+			<name>org.eclipse.jdt.core.javabuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.ManifestBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.SchemaBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+	</buildSpec>

+	<natures>

+		<nature>org.eclipse.pde.PluginNature</nature>

+		<nature>org.eclipse.jdt.core.javanature</nature>

+	</natures>

+</projectDescription>

diff --git a/mysql/com.mysql.jdbc/.settings/org.eclipse.jdt.core.prefs b/mysql/com.mysql.jdbc/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..9b423b4
--- /dev/null
+++ b/mysql/com.mysql.jdbc/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Sun Oct 23 22:54:43 CEST 2011

+eclipse.preferences.version=1

+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

+org.eclipse.jdt.core.compiler.compliance=1.6

+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

+org.eclipse.jdt.core.compiler.source=1.6

diff --git a/mysql/com.mysql.jdbc/META-INF/MANIFEST.MF b/mysql/com.mysql.jdbc/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..acd4d94
--- /dev/null
+++ b/mysql/com.mysql.jdbc/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0

+Bundle-ManifestVersion: 2

+Bundle-Name: MySQL Mock

+Bundle-SymbolicName: com.mysql.jdbc

+Bundle-Version: 0.0.0.qualifier

+Bundle-RequiredExecutionEnvironment: JavaSE-1.6

+Import-Package: 

+ javax.sql

+Export-Package: com.mysql.jdbc,

+ com.mysql.jdbc.jdbc2.optional

diff --git a/mysql/com.mysql.jdbc/about.html b/mysql/com.mysql.jdbc/about.html
new file mode 100644
index 0000000..d877f45
--- /dev/null
+++ b/mysql/com.mysql.jdbc/about.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Gemini DB Access 1.0.0</title> 

+</head>

+

+<body lang="EN-US"> 

+<h2>About</h2> 

+<p>May 4, 2010</p> 

+

+<p>

+The Gemini DB Access project provides support for certain JDBC drivers to be able to be installed as bundles and accessed as services to be compliant with the OSGi JDBC specification.

+</p>

+

+<h3>License </h3>

+<p>

+The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 (&quot;EPL&quot;) and Apache Software License Version 2.0 (&quot;ASL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> and a copy of the ASL is available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>. For purposes of the EPL, &quot;Program&quot; will mean the Content.

+</p>

+<p>

+If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may apply to your use of any object code in the Content. Check the Redistributor&#8217;s license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise indicated below, the terms and conditions of the EPL and ASL still apply to any source code in the Content and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.

+</p>

+

+<h3>Third Party Content</h3>

+

+<p>

+The Content includes items that have been sourced from third parties as set out below. If you did not receive this Content directly from the Eclipse Foundation, the following is provided for informational purposes only, and you should look to the Redistributor&#8217;s license for terms and conditions of use.

+</p>

+

+<ul>

+  <li><a href="#OSGiEnterprise">OSGi Enterprise</a></li>

+  <li><a href="#Derby">Derby JDBC library</a></li>

+</ul>

+<hr />

+

+<h3><a name="OSGiEnterprise" id="OSGiEnterprise"></a>OSGi Enterprise APIs</h3>

+<blockquote> 

+<p>

+The OSGi Enterprise specification was created in the OSGi Alliance and defines a set of OSGi services, some of which are used or implemented by Gemini DB Access. The specification APIs are licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">ASL</a> license.

+</p>

+</blockquote>

+

+<h3><a name="Derby" id="Derby"></a>Derby JDBC Library</h3>

+<blockquote> 

+<p>

+The <a href="http://db.apache.org/derby/">Apache Derby</a> project provides a set of JDBC driver classes to allow Java programs 

+to access the database. These can be obtained from the <a href="http://db.apache.org/derby/derby_downloads.html">Derby Downloads page</a>

+and are licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">ASL v2.0 license</a>

+</blockquote>

+

+<p></p>

+</body>

+</html>

+

diff --git a/mysql/com.mysql.jdbc/build.properties b/mysql/com.mysql.jdbc/build.properties
new file mode 100644
index 0000000..2d66a37
--- /dev/null
+++ b/mysql/com.mysql.jdbc/build.properties
@@ -0,0 +1,6 @@
+source.. = src/

+output.. = bin/

+bin.includes = .,\

+               META-INF/,\

+               src/

+jars.compile.order = .

diff --git a/mysql/com.mysql.jdbc/epl-v10.html b/mysql/com.mysql.jdbc/epl-v10.html
new file mode 100644
index 0000000..c36d29b
--- /dev/null
+++ b/mysql/com.mysql.jdbc/epl-v10.html
@@ -0,0 +1,260 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+ 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Eclipse Public License - Version 1.0</title> 

+<style type="text/css"> 

+  body {

+    size: 8.5in 11.0in;

+    margin: 0.25in 0.5in 0.25in 0.5in;

+    tab-interval: 0.5in;

+    }

+  p {  	

+    margin-left: auto;

+    margin-top:  0.5em;

+    margin-bottom: 0.5em;

+    }

+  p.list {

+  	margin-left: 0.5in;

+    margin-top:  0.05em;

+    margin-bottom: 0.05em;

+    }

+  </style> 

+ 

+</head> 

+ 

+<body lang="EN-US"> 

+ 

+<h2>Eclipse Public License - v 1.0</h2> 

+ 

+<p>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE

+PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE, REPRODUCTION OR

+DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS

+AGREEMENT.</p> 

+ 

+<p><b>1. DEFINITIONS</b></p> 

+ 

+<p>&quot;Contribution&quot; means:</p> 

+ 

+<p class="list">a) in the case of the initial Contributor, the initial

+code and documentation distributed under this Agreement, and</p> 

+<p class="list">b) in the case of each subsequent Contributor:</p> 

+<p class="list">i) changes to the Program, and</p> 

+<p class="list">ii) additions to the Program;</p> 

+<p class="list">where such changes and/or additions to the Program

+originate from and are distributed by that particular Contributor. A

+Contribution 'originates' from a Contributor if it was added to the

+Program by such Contributor itself or anyone acting on such

+Contributor's behalf. Contributions do not include additions to the

+Program which: (i) are separate modules of software distributed in

+conjunction with the Program under their own license agreement, and (ii)

+are not derivative works of the Program.</p> 

+ 

+<p>&quot;Contributor&quot; means any person or entity that distributes

+the Program.</p> 

+ 

+<p>&quot;Licensed Patents&quot; mean patent claims licensable by a

+Contributor which are necessarily infringed by the use or sale of its

+Contribution alone or when combined with the Program.</p> 

+ 

+<p>&quot;Program&quot; means the Contributions distributed in accordance

+with this Agreement.</p> 

+ 

+<p>&quot;Recipient&quot; means anyone who receives the Program under

+this Agreement, including all Contributors.</p> 

+ 

+<p><b>2. GRANT OF RIGHTS</b></p> 

+ 

+<p class="list">a) Subject to the terms of this Agreement, each

+Contributor hereby grants Recipient a non-exclusive, worldwide,

+royalty-free copyright license to reproduce, prepare derivative works

+of, publicly display, publicly perform, distribute and sublicense the

+Contribution of such Contributor, if any, and such derivative works, in

+source code and object code form.</p> 

+ 

+<p class="list">b) Subject to the terms of this Agreement, each

+Contributor hereby grants Recipient a non-exclusive, worldwide,

+royalty-free patent license under Licensed Patents to make, use, sell,

+offer to sell, import and otherwise transfer the Contribution of such

+Contributor, if any, in source code and object code form. This patent

+license shall apply to the combination of the Contribution and the

+Program if, at the time the Contribution is added by the Contributor,

+such addition of the Contribution causes such combination to be covered

+by the Licensed Patents. The patent license shall not apply to any other

+combinations which include the Contribution. No hardware per se is

+licensed hereunder.</p> 

+ 

+<p class="list">c) Recipient understands that although each Contributor

+grants the licenses to its Contributions set forth herein, no assurances

+are provided by any Contributor that the Program does not infringe the

+patent or other intellectual property rights of any other entity. Each

+Contributor disclaims any liability to Recipient for claims brought by

+any other entity based on infringement of intellectual property rights

+or otherwise. As a condition to exercising the rights and licenses

+granted hereunder, each Recipient hereby assumes sole responsibility to

+secure any other intellectual property rights needed, if any. For

+example, if a third party patent license is required to allow Recipient

+to distribute the Program, it is Recipient's responsibility to acquire

+that license before distributing the Program.</p> 

+ 

+<p class="list">d) Each Contributor represents that to its knowledge it

+has sufficient copyright rights in its Contribution, if any, to grant

+the copyright license set forth in this Agreement.</p> 

+ 

+<p><b>3. REQUIREMENTS</b></p> 

+ 

+<p>A Contributor may choose to distribute the Program in object code

+form under its own license agreement, provided that:</p> 

+ 

+<p class="list">a) it complies with the terms and conditions of this

+Agreement; and</p> 

+ 

+<p class="list">b) its license agreement:</p> 

+ 

+<p class="list">i) effectively disclaims on behalf of all Contributors

+all warranties and conditions, express and implied, including warranties

+or conditions of title and non-infringement, and implied warranties or

+conditions of merchantability and fitness for a particular purpose;</p> 

+ 

+<p class="list">ii) effectively excludes on behalf of all Contributors

+all liability for damages, including direct, indirect, special,

+incidental and consequential damages, such as lost profits;</p> 

+ 

+<p class="list">iii) states that any provisions which differ from this

+Agreement are offered by that Contributor alone and not by any other

+party; and</p> 

+ 

+<p class="list">iv) states that source code for the Program is available

+from such Contributor, and informs licensees how to obtain it in a

+reasonable manner on or through a medium customarily used for software

+exchange.</p> 

+ 

+<p>When the Program is made available in source code form:</p> 

+ 

+<p class="list">a) it must be made available under this Agreement; and</p> 

+ 

+<p class="list">b) a copy of this Agreement must be included with each

+copy of the Program.</p> 

+ 

+<p>Contributors may not remove or alter any copyright notices contained

+within the Program.</p> 

+ 

+<p>Each Contributor must identify itself as the originator of its

+Contribution, if any, in a manner that reasonably allows subsequent

+Recipients to identify the originator of the Contribution.</p> 

+ 

+<p><b>4. COMMERCIAL DISTRIBUTION</b></p> 

+ 

+<p>Commercial distributors of software may accept certain

+responsibilities with respect to end users, business partners and the

+like. While this license is intended to facilitate the commercial use of

+the Program, the Contributor who includes the Program in a commercial

+product offering should do so in a manner which does not create

+potential liability for other Contributors. Therefore, if a Contributor

+includes the Program in a commercial product offering, such Contributor

+(&quot;Commercial Contributor&quot;) hereby agrees to defend and

+indemnify every other Contributor (&quot;Indemnified Contributor&quot;)

+against any losses, damages and costs (collectively &quot;Losses&quot;)

+arising from claims, lawsuits and other legal actions brought by a third

+party against the Indemnified Contributor to the extent caused by the

+acts or omissions of such Commercial Contributor in connection with its

+distribution of the Program in a commercial product offering. The

+obligations in this section do not apply to any claims or Losses

+relating to any actual or alleged intellectual property infringement. In

+order to qualify, an Indemnified Contributor must: a) promptly notify

+the Commercial Contributor in writing of such claim, and b) allow the

+Commercial Contributor to control, and cooperate with the Commercial

+Contributor in, the defense and any related settlement negotiations. The

+Indemnified Contributor may participate in any such claim at its own

+expense.</p> 

+ 

+<p>For example, a Contributor might include the Program in a commercial

+product offering, Product X. That Contributor is then a Commercial

+Contributor. If that Commercial Contributor then makes performance

+claims, or offers warranties related to Product X, those performance

+claims and warranties are such Commercial Contributor's responsibility

+alone. Under this section, the Commercial Contributor would have to

+defend claims against the other Contributors related to those

+performance claims and warranties, and if a court requires any other

+Contributor to pay any damages as a result, the Commercial Contributor

+must pay those damages.</p> 

+ 

+<p><b>5. NO WARRANTY</b></p> 

+ 

+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS

+PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS

+OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,

+ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY

+OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely

+responsible for determining the appropriateness of using and

+distributing the Program and assumes all risks associated with its

+exercise of rights under this Agreement , including but not limited to

+the risks and costs of program errors, compliance with applicable laws,

+damage to or loss of data, programs or equipment, and unavailability or

+interruption of operations.</p> 

+ 

+<p><b>6. DISCLAIMER OF LIABILITY</b></p> 

+ 

+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT

+NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,

+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING

+WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF

+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING

+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR

+DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED

+HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p> 

+ 

+<p><b>7. GENERAL</b></p> 

+ 

+<p>If any provision of this Agreement is invalid or unenforceable under

+applicable law, it shall not affect the validity or enforceability of

+the remainder of the terms of this Agreement, and without further action

+by the parties hereto, such provision shall be reformed to the minimum

+extent necessary to make such provision valid and enforceable.</p> 

+ 

+<p>If Recipient institutes patent litigation against any entity

+(including a cross-claim or counterclaim in a lawsuit) alleging that the

+Program itself (excluding combinations of the Program with other

+software or hardware) infringes such Recipient's patent(s), then such

+Recipient's rights granted under Section 2(b) shall terminate as of the

+date such litigation is filed.</p> 

+ 

+<p>All Recipient's rights under this Agreement shall terminate if it

+fails to comply with any of the material terms or conditions of this

+Agreement and does not cure such failure in a reasonable period of time

+after becoming aware of such noncompliance. If all Recipient's rights

+under this Agreement terminate, Recipient agrees to cease use and

+distribution of the Program as soon as reasonably practicable. However,

+Recipient's obligations under this Agreement and any licenses granted by

+Recipient relating to the Program shall continue and survive.</p> 

+ 

+<p>Everyone is permitted to copy and distribute copies of this

+Agreement, but in order to avoid inconsistency the Agreement is

+copyrighted and may only be modified in the following manner. The

+Agreement Steward reserves the right to publish new versions (including

+revisions) of this Agreement from time to time. No one other than the

+Agreement Steward has the right to modify this Agreement. The Eclipse

+Foundation is the initial Agreement Steward. The Eclipse Foundation may

+assign the responsibility to serve as the Agreement Steward to a

+suitable separate entity. Each new version of the Agreement will be

+given a distinguishing version number. The Program (including

+Contributions) may always be distributed subject to the version of the

+Agreement under which it was received. In addition, after a new version

+of the Agreement is published, Contributor may elect to distribute the

+Program (including its Contributions) under the new version. Except as

+expressly stated in Sections 2(a) and 2(b) above, Recipient receives no

+rights or licenses to the intellectual property of any Contributor under

+this Agreement, whether expressly, by implication, estoppel or

+otherwise. All rights in the Program not expressly granted under this

+Agreement are reserved.</p> 

+ 

+<p>This Agreement is governed by the laws of the State of New York and

+the intellectual property laws of the United States of America. No party

+to this Agreement will bring a legal action under this Agreement more

+than one year after the cause of action arose. Each party waives its

+rights to a jury trial in any resulting litigation.</p> 

+ 

+</body> 

+ 

+</html>
\ No newline at end of file
diff --git a/mysql/com.mysql.jdbc/notice.html b/mysql/com.mysql.jdbc/notice.html
new file mode 100644
index 0000000..fe1ce99
--- /dev/null
+++ b/mysql/com.mysql.jdbc/notice.html
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Eclipse Foundation Software User Agreement</title> 

+</head> 

+ 

+<body lang="EN-US"> 

+<h2>Eclipse Foundation Software User Agreement</h2> 

+<p>April 14, 2010</p> 

+ 

+<h3>Usage Of Content</h3> 

+ 

+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS

+   (COLLECTIVELY &quot;CONTENT&quot;).  USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND

+   CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW.  BY USING THE CONTENT, YOU AGREE THAT YOUR USE

+   OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR

+   NOTICES INDICATED OR REFERENCED BELOW.  IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND

+   CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p> 

+ 

+<h3>Applicable Licenses</h3> 

+ 

+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 (&quot;EPL&quot;) and Apache Software License Version 2.0 (&quot;ASL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> and a copy of the ASL is available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>. For purposes of the EPL, &quot;Program&quot; will mean the Content.</p> 

+ 

+<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p> 

+ 

+<ul> 

+       <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content.  Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li> 

+       <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li> 

+       <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.  Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;.  Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins

+      and/or Fragments associated with that Feature.</li> 

+       <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li> 

+</ul> 

+ 

+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and

+Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;).  Abouts and Feature Licenses may be located in any directory of a Download or Module

+including, but not limited to the following locations:</p> 

+ 

+<ul> 

+       <li>The top-level (root) directory</li> 

+       <li>Plug-in and Fragment directories</li> 

+       <li>Inside Plug-ins and Fragments packaged as JARs</li> 

+       <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li> 

+       <li>Feature directories</li> 

+</ul> 

+ 

+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the

+installation process.  If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or

+inform you where you can locate them.  Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.

+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in

+that directory.</p> 

+ 

+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.  SOME OF THESE

+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p> 

+ 

+<ul> 

+       <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li> 

+       <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li> 

+       <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li> 

+       <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li> 

+       <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li> 

+</ul> 

+ 

+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT.  If no About, Feature License, or Feature Update License is provided, please

+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p> 

+ 

+ 

+<h3>Use of Provisioning Technology</h3> 

+ 

+<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse

+   Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or

+   other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to

+   install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a 

+       href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a> 

+   (&quot;Specification&quot;).</p> 

+ 

+<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the

+   applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology

+   in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the

+   Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p> 

+ 

+<ol> 

+       <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology

+       on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based

+       product.</li> 

+       <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be

+       accessed and copied to the Target Machine.</li> 

+       <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable

+       Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target

+       Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern

+       the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such

+       indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li> 

+</ol> 

+ 

+<h3>Cryptography</h3> 

+ 

+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to

+   another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,

+   possession, or use, and re-export of encryption software, to see if this is permitted.</p> 

+ 

+<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p> 

+</body> 

+</html> 
\ No newline at end of file
diff --git a/mysql/com.mysql.jdbc/pom.xml b/mysql/com.mysql.jdbc/pom.xml
new file mode 100644
index 0000000..6a24ac3
--- /dev/null
+++ b/mysql/com.mysql.jdbc/pom.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!--

+    Copyright (c) 2010 SAP AG.

+    All rights reserved. This program and the accompanying materials

+    are made available under the terms of the Eclipse Public License v1.0

+    which accompanies this distribution, and is available at

+    http://www.eclipse.org/legal/epl-v10.html

+   

+    Contributors:

+        jkissner - initial implementation

+ -->

+

+<project xmlns="http://maven.apache.org/POM/4.0.0"

+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <modelVersion>4.0.0</modelVersion>

+

+  <parent>

+    <groupId>org.eclipse</groupId>

+    <artifactId>gemini.dbaccess.parent</artifactId>

+    <version>1.1.0-SNAPSHOT</version>

+    <relativePath>../../mvn_parent</relativePath>

+  </parent>

+

+  <artifactId>com.mysql.jdbc</artifactId>

+    <version>0.0.0-SNAPSHOT</version>

+  <packaging>eclipse-plugin</packaging>

+</project>

diff --git a/mysql/com.mysql.jdbc/settings/org.eclipse.jdt.core.prefs b/mysql/com.mysql.jdbc/settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..f287d53
--- /dev/null
+++ b/mysql/com.mysql.jdbc/settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1

+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

+org.eclipse.jdt.core.compiler.compliance=1.6

+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

+org.eclipse.jdt.core.compiler.source=1.6

diff --git a/mysql/com.mysql.jdbc/settings/org.eclipse.pde.core.prefs b/mysql/com.mysql.jdbc/settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..adff9e5
--- /dev/null
+++ b/mysql/com.mysql.jdbc/settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,5 @@
+#Wed Nov 25 13:45:02 EST 2009

+eclipse.preferences.version=1

+pluginProject.equinox=false

+pluginProject.extensions=false

+resolve.requirebundle=false

diff --git a/mysql/com.mysql.jdbc/src/com/mysql/jdbc/Driver.java b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/Driver.java
new file mode 100644
index 0000000..484a718
--- /dev/null
+++ b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/Driver.java
@@ -0,0 +1,47 @@
+package com.mysql.jdbc;

+

+import java.sql.Connection;

+import java.sql.DriverPropertyInfo;

+import java.sql.SQLException;

+import java.util.Properties;

+

+public class Driver implements java.sql.Driver {

+

+	@Override

+	public boolean acceptsURL(String arg0) throws SQLException {

+		// TODO Auto-generated method stub

+		return false;

+	}

+

+	@Override

+	public Connection connect(String arg0, Properties arg1) throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public int getMajorVersion() {

+		// TODO Auto-generated method stub

+		return 0;

+	}

+

+	@Override

+	public int getMinorVersion() {

+		// TODO Auto-generated method stub

+		return 0;

+	}

+

+	@Override

+	public DriverPropertyInfo[] getPropertyInfo(String arg0, Properties arg1)

+			throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public boolean jdbcCompliant() {

+		// TODO Auto-generated method stub

+		return false;

+	}

+

+}

diff --git a/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.java b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.java
new file mode 100644
index 0000000..ae5d529
--- /dev/null
+++ b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.java
@@ -0,0 +1,48 @@
+package com.mysql.jdbc.jdbc2.optional;

+

+import java.io.PrintWriter;

+import java.sql.SQLException;

+

+import javax.sql.ConnectionPoolDataSource;

+import javax.sql.PooledConnection;

+

+public class MysqlConnectionPoolDataSource implements ConnectionPoolDataSource {

+

+	@Override

+	public PrintWriter getLogWriter() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public int getLoginTimeout() throws SQLException {

+		// TODO Auto-generated method stub

+		return 0;

+	}

+

+	@Override

+	public void setLogWriter(PrintWriter arg0) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public void setLoginTimeout(int arg0) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public PooledConnection getPooledConnection() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public PooledConnection getPooledConnection(String arg0, String arg1)

+			throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+}

diff --git a/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
new file mode 100644
index 0000000..47582a3
--- /dev/null
+++ b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
@@ -0,0 +1,60 @@
+package com.mysql.jdbc.jdbc2.optional;

+

+import java.io.PrintWriter;

+import java.sql.Connection;

+import java.sql.SQLException;

+

+import javax.sql.DataSource;

+

+public class MysqlDataSource implements DataSource {

+

+	@Override

+	public PrintWriter getLogWriter() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public int getLoginTimeout() throws SQLException {

+		// TODO Auto-generated method stub

+		return 0;

+	}

+

+	@Override

+	public void setLogWriter(PrintWriter out) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public void setLoginTimeout(int seconds) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public boolean isWrapperFor(Class<?> arg0) throws SQLException {

+		// TODO Auto-generated method stub

+		return false;

+	}

+

+	@Override

+	public <T> T unwrap(Class<T> arg0) throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public Connection getConnection() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public Connection getConnection(String arg0, String arg1)

+			throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+}

diff --git a/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlXADataSource.java b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlXADataSource.java
new file mode 100644
index 0000000..abcbe4e
--- /dev/null
+++ b/mysql/com.mysql.jdbc/src/com/mysql/jdbc/jdbc2/optional/MysqlXADataSource.java
@@ -0,0 +1,48 @@
+package com.mysql.jdbc.jdbc2.optional;

+

+import java.io.PrintWriter;

+import java.sql.SQLException;

+

+import javax.sql.XAConnection;

+import javax.sql.XADataSource;

+

+public class MysqlXADataSource implements XADataSource {

+

+	@Override

+	public PrintWriter getLogWriter() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public int getLoginTimeout() throws SQLException {

+		// TODO Auto-generated method stub

+		return 0;

+	}

+

+	@Override

+	public void setLogWriter(PrintWriter out) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public void setLoginTimeout(int seconds) throws SQLException {

+		// TODO Auto-generated method stub

+

+	}

+

+	@Override

+	public XAConnection getXAConnection() throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+	@Override

+	public XAConnection getXAConnection(String arg0, String arg1)

+			throws SQLException {

+		// TODO Auto-generated method stub

+		return null;

+	}

+

+}

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/.classpath b/mysql/org.eclipse.gemini.dbaccess.mysql/.classpath
new file mode 100644
index 0000000..335ba65
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<classpath>

+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>

+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>

+	<classpathentry excluding="**/.svn/*" kind="src" path="src"/>

+	<classpathentry kind="output" path="bin"/>

+</classpath>

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/.gitignore b/mysql/org.eclipse.gemini.dbaccess.mysql/.gitignore
new file mode 100644
index 0000000..ea8c4bf
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/.project b/mysql/org.eclipse.gemini.dbaccess.mysql/.project
new file mode 100644
index 0000000..68a55a2
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<projectDescription>

+	<name>org.eclipse.gemini.dbaccess.mysql</name>

+	<comment></comment>

+	<projects>

+	</projects>

+	<buildSpec>

+		<buildCommand>

+			<name>org.eclipse.jdt.core.javabuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.ManifestBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.SchemaBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+	</buildSpec>

+	<natures>

+		<nature>org.eclipse.pde.PluginNature</nature>

+		<nature>org.eclipse.jdt.core.javanature</nature>

+	</natures>

+</projectDescription>

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/LICENSE-2.0 b/mysql/org.eclipse.gemini.dbaccess.mysql/LICENSE-2.0
new file mode 100644
index 0000000..75b5248
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/LICENSE-2.0
@@ -0,0 +1,202 @@
+

+                                 Apache License

+                           Version 2.0, January 2004

+                        http://www.apache.org/licenses/

+

+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

+

+   1. Definitions.

+

+      "License" shall mean the terms and conditions for use, reproduction,

+      and distribution as defined by Sections 1 through 9 of this document.

+

+      "Licensor" shall mean the copyright owner or entity authorized by

+      the copyright owner that is granting the License.

+

+      "Legal Entity" shall mean the union of the acting entity and all

+      other entities that control, are controlled by, or are under common

+      control with that entity. For the purposes of this definition,

+      "control" means (i) the power, direct or indirect, to cause the

+      direction or management of such entity, whether by contract or

+      otherwise, or (ii) ownership of fifty percent (50%) or more of the

+      outstanding shares, or (iii) beneficial ownership of such entity.

+

+      "You" (or "Your") shall mean an individual or Legal Entity

+      exercising permissions granted by this License.

+

+      "Source" form shall mean the preferred form for making modifications,

+      including but not limited to software source code, documentation

+      source, and configuration files.

+

+      "Object" form shall mean any form resulting from mechanical

+      transformation or translation of a Source form, including but

+      not limited to compiled object code, generated documentation,

+      and conversions to other media types.

+

+      "Work" shall mean the work of authorship, whether in Source or

+      Object form, made available under the License, as indicated by a

+      copyright notice that is included in or attached to the work

+      (an example is provided in the Appendix below).

+

+      "Derivative Works" shall mean any work, whether in Source or Object

+      form, that is based on (or derived from) the Work and for which the

+      editorial revisions, annotations, elaborations, or other modifications

+      represent, as a whole, an original work of authorship. For the purposes

+      of this License, Derivative Works shall not include works that remain

+      separable from, or merely link (or bind by name) to the interfaces of,

+      the Work and Derivative Works thereof.

+

+      "Contribution" shall mean any work of authorship, including

+      the original version of the Work and any modifications or additions

+      to that Work or Derivative Works thereof, that is intentionally

+      submitted to Licensor for inclusion in the Work by the copyright owner

+      or by an individual or Legal Entity authorized to submit on behalf of

+      the copyright owner. For the purposes of this definition, "submitted"

+      means any form of electronic, verbal, or written communication sent

+      to the Licensor or its representatives, including but not limited to

+      communication on electronic mailing lists, source code control systems,

+      and issue tracking systems that are managed by, or on behalf of, the

+      Licensor for the purpose of discussing and improving the Work, but

+      excluding communication that is conspicuously marked or otherwise

+      designated in writing by the copyright owner as "Not a Contribution."

+

+      "Contributor" shall mean Licensor and any individual or Legal Entity

+      on behalf of whom a Contribution has been received by Licensor and

+      subsequently incorporated within the Work.

+

+   2. Grant of Copyright License. Subject to the terms and conditions of

+      this License, each Contributor hereby grants to You a perpetual,

+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable

+      copyright license to reproduce, prepare Derivative Works of,

+      publicly display, publicly perform, sublicense, and distribute the

+      Work and such Derivative Works in Source or Object form.

+

+   3. Grant of Patent License. Subject to the terms and conditions of

+      this License, each Contributor hereby grants to You a perpetual,

+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable

+      (except as stated in this section) patent license to make, have made,

+      use, offer to sell, sell, import, and otherwise transfer the Work,

+      where such license applies only to those patent claims licensable

+      by such Contributor that are necessarily infringed by their

+      Contribution(s) alone or by combination of their Contribution(s)

+      with the Work to which such Contribution(s) was submitted. If You

+      institute patent litigation against any entity (including a

+      cross-claim or counterclaim in a lawsuit) alleging that the Work

+      or a Contribution incorporated within the Work constitutes direct

+      or contributory patent infringement, then any patent licenses

+      granted to You under this License for that Work shall terminate

+      as of the date such litigation is filed.

+

+   4. Redistribution. You may reproduce and distribute copies of the

+      Work or Derivative Works thereof in any medium, with or without

+      modifications, and in Source or Object form, provided that You

+      meet the following conditions:

+

+      (a) You must give any other recipients of the Work or

+          Derivative Works a copy of this License; and

+

+      (b) You must cause any modified files to carry prominent notices

+          stating that You changed the files; and

+

+      (c) You must retain, in the Source form of any Derivative Works

+          that You distribute, all copyright, patent, trademark, and

+          attribution notices from the Source form of the Work,

+          excluding those notices that do not pertain to any part of

+          the Derivative Works; and

+

+      (d) If the Work includes a "NOTICE" text file as part of its

+          distribution, then any Derivative Works that You distribute must

+          include a readable copy of the attribution notices contained

+          within such NOTICE file, excluding those notices that do not

+          pertain to any part of the Derivative Works, in at least one

+          of the following places: within a NOTICE text file distributed

+          as part of the Derivative Works; within the Source form or

+          documentation, if provided along with the Derivative Works; or,

+          within a display generated by the Derivative Works, if and

+          wherever such third-party notices normally appear. The contents

+          of the NOTICE file are for informational purposes only and

+          do not modify the License. You may add Your own attribution

+          notices within Derivative Works that You distribute, alongside

+          or as an addendum to the NOTICE text from the Work, provided

+          that such additional attribution notices cannot be construed

+          as modifying the License.

+

+      You may add Your own copyright statement to Your modifications and

+      may provide additional or different license terms and conditions

+      for use, reproduction, or distribution of Your modifications, or

+      for any such Derivative Works as a whole, provided Your use,

+      reproduction, and distribution of the Work otherwise complies with

+      the conditions stated in this License.

+

+   5. Submission of Contributions. Unless You explicitly state otherwise,

+      any Contribution intentionally submitted for inclusion in the Work

+      by You to the Licensor shall be under the terms and conditions of

+      this License, without any additional terms or conditions.

+      Notwithstanding the above, nothing herein shall supersede or modify

+      the terms of any separate license agreement you may have executed

+      with Licensor regarding such Contributions.

+

+   6. Trademarks. This License does not grant permission to use the trade

+      names, trademarks, service marks, or product names of the Licensor,

+      except as required for reasonable and customary use in describing the

+      origin of the Work and reproducing the content of the NOTICE file.

+

+   7. Disclaimer of Warranty. Unless required by applicable law or

+      agreed to in writing, Licensor provides the Work (and each

+      Contributor provides its Contributions) on an "AS IS" BASIS,

+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or

+      implied, including, without limitation, any warranties or conditions

+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A

+      PARTICULAR PURPOSE. You are solely responsible for determining the

+      appropriateness of using or redistributing the Work and assume any

+      risks associated with Your exercise of permissions under this License.

+

+   8. Limitation of Liability. In no event and under no legal theory,

+      whether in tort (including negligence), contract, or otherwise,

+      unless required by applicable law (such as deliberate and grossly

+      negligent acts) or agreed to in writing, shall any Contributor be

+      liable to You for damages, including any direct, indirect, special,

+      incidental, or consequential damages of any character arising as a

+      result of this License or out of the use or inability to use the

+      Work (including but not limited to damages for loss of goodwill,

+      work stoppage, computer failure or malfunction, or any and all

+      other commercial damages or losses), even if such Contributor

+      has been advised of the possibility of such damages.

+

+   9. Accepting Warranty or Additional Liability. While redistributing

+      the Work or Derivative Works thereof, You may choose to offer,

+      and charge a fee for, acceptance of support, warranty, indemnity,

+      or other liability obligations and/or rights consistent with this

+      License. However, in accepting such obligations, You may act only

+      on Your own behalf and on Your sole responsibility, not on behalf

+      of any other Contributor, and only if You agree to indemnify,

+      defend, and hold each Contributor harmless for any liability

+      incurred by, or claims asserted against, such Contributor by reason

+      of your accepting any such warranty or additional liability.

+

+   END OF TERMS AND CONDITIONS

+

+   APPENDIX: How to apply the Apache License to your work.

+

+      To apply the Apache License to your work, attach the following

+      boilerplate notice, with the fields enclosed by brackets "[]"

+      replaced with your own identifying information. (Don't include

+      the brackets!)  The text should be enclosed in the appropriate

+      comment syntax for the file format. We also recommend that a

+      file or class name and description of purpose be included on the

+      same "printed page" as the copyright notice for easier

+      identification within third-party archives.

+

+   Copyright [yyyy] [name of copyright owner]

+

+   Licensed under the Apache License, Version 2.0 (the "License");

+   you may not use this file except in compliance with the License.

+   You may obtain a copy of the License at

+

+       http://www.apache.org/licenses/LICENSE-2.0

+

+   Unless required by applicable law or agreed to in writing, software

+   distributed under the License is distributed on an "AS IS" BASIS,

+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+   See the License for the specific language governing permissions and

+   limitations under the License.

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/META-INF/MANIFEST.MF b/mysql/org.eclipse.gemini.dbaccess.mysql/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..5cd41d0
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0

+Bundle-ManifestVersion: 2

+Bundle-Name: MySQL

+Bundle-SymbolicName: org.eclipse.gemini.dbaccess.mysql

+Bundle-Version: 1.1.0.qualifier

+Bundle-Activator: org.eclipse.gemini.dbaccess.mysql.Activator

+Bundle-RequiredExecutionEnvironment: JavaSE-1.6

+Import-Package: com.mysql.jdbc,

+ com.mysql.jdbc.jdbc2.optional,

+ javax.sql,

+ org.eclipse.gemini.dbaccess,

+ org.osgi.framework;version="[1.3,2)",

+ org.osgi.service.jdbc;version="[1.0,2.0)"

+Export-Package: org.eclipse.gemini.dbaccess.mysql.service;uses:="com.mysql.jdbc,com.mysql.jdbc.jdbc2.optional,javax.sql"

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/about.html b/mysql/org.eclipse.gemini.dbaccess.mysql/about.html
new file mode 100644
index 0000000..d877f45
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/about.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Gemini DB Access 1.0.0</title> 

+</head>

+

+<body lang="EN-US"> 

+<h2>About</h2> 

+<p>May 4, 2010</p> 

+

+<p>

+The Gemini DB Access project provides support for certain JDBC drivers to be able to be installed as bundles and accessed as services to be compliant with the OSGi JDBC specification.

+</p>

+

+<h3>License </h3>

+<p>

+The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 (&quot;EPL&quot;) and Apache Software License Version 2.0 (&quot;ASL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> and a copy of the ASL is available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>. For purposes of the EPL, &quot;Program&quot; will mean the Content.

+</p>

+<p>

+If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may apply to your use of any object code in the Content. Check the Redistributor&#8217;s license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise indicated below, the terms and conditions of the EPL and ASL still apply to any source code in the Content and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.

+</p>

+

+<h3>Third Party Content</h3>

+

+<p>

+The Content includes items that have been sourced from third parties as set out below. If you did not receive this Content directly from the Eclipse Foundation, the following is provided for informational purposes only, and you should look to the Redistributor&#8217;s license for terms and conditions of use.

+</p>

+

+<ul>

+  <li><a href="#OSGiEnterprise">OSGi Enterprise</a></li>

+  <li><a href="#Derby">Derby JDBC library</a></li>

+</ul>

+<hr />

+

+<h3><a name="OSGiEnterprise" id="OSGiEnterprise"></a>OSGi Enterprise APIs</h3>

+<blockquote> 

+<p>

+The OSGi Enterprise specification was created in the OSGi Alliance and defines a set of OSGi services, some of which are used or implemented by Gemini DB Access. The specification APIs are licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">ASL</a> license.

+</p>

+</blockquote>

+

+<h3><a name="Derby" id="Derby"></a>Derby JDBC Library</h3>

+<blockquote> 

+<p>

+The <a href="http://db.apache.org/derby/">Apache Derby</a> project provides a set of JDBC driver classes to allow Java programs 

+to access the database. These can be obtained from the <a href="http://db.apache.org/derby/derby_downloads.html">Derby Downloads page</a>

+and are licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">ASL v2.0 license</a>

+</blockquote>

+

+<p></p>

+</body>

+</html>

+

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/build.properties b/mysql/org.eclipse.gemini.dbaccess.mysql/build.properties
new file mode 100644
index 0000000..2d66a37
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/build.properties
@@ -0,0 +1,6 @@
+source.. = src/

+output.. = bin/

+bin.includes = .,\

+               META-INF/,\

+               src/

+jars.compile.order = .

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/epl-v10.html b/mysql/org.eclipse.gemini.dbaccess.mysql/epl-v10.html
new file mode 100644
index 0000000..c36d29b
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/epl-v10.html
@@ -0,0 +1,260 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+ 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Eclipse Public License - Version 1.0</title> 

+<style type="text/css"> 

+  body {

+    size: 8.5in 11.0in;

+    margin: 0.25in 0.5in 0.25in 0.5in;

+    tab-interval: 0.5in;

+    }

+  p {  	

+    margin-left: auto;

+    margin-top:  0.5em;

+    margin-bottom: 0.5em;

+    }

+  p.list {

+  	margin-left: 0.5in;

+    margin-top:  0.05em;

+    margin-bottom: 0.05em;

+    }

+  </style> 

+ 

+</head> 

+ 

+<body lang="EN-US"> 

+ 

+<h2>Eclipse Public License - v 1.0</h2> 

+ 

+<p>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE

+PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE, REPRODUCTION OR

+DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS

+AGREEMENT.</p> 

+ 

+<p><b>1. DEFINITIONS</b></p> 

+ 

+<p>&quot;Contribution&quot; means:</p> 

+ 

+<p class="list">a) in the case of the initial Contributor, the initial

+code and documentation distributed under this Agreement, and</p> 

+<p class="list">b) in the case of each subsequent Contributor:</p> 

+<p class="list">i) changes to the Program, and</p> 

+<p class="list">ii) additions to the Program;</p> 

+<p class="list">where such changes and/or additions to the Program

+originate from and are distributed by that particular Contributor. A

+Contribution 'originates' from a Contributor if it was added to the

+Program by such Contributor itself or anyone acting on such

+Contributor's behalf. Contributions do not include additions to the

+Program which: (i) are separate modules of software distributed in

+conjunction with the Program under their own license agreement, and (ii)

+are not derivative works of the Program.</p> 

+ 

+<p>&quot;Contributor&quot; means any person or entity that distributes

+the Program.</p> 

+ 

+<p>&quot;Licensed Patents&quot; mean patent claims licensable by a

+Contributor which are necessarily infringed by the use or sale of its

+Contribution alone or when combined with the Program.</p> 

+ 

+<p>&quot;Program&quot; means the Contributions distributed in accordance

+with this Agreement.</p> 

+ 

+<p>&quot;Recipient&quot; means anyone who receives the Program under

+this Agreement, including all Contributors.</p> 

+ 

+<p><b>2. GRANT OF RIGHTS</b></p> 

+ 

+<p class="list">a) Subject to the terms of this Agreement, each

+Contributor hereby grants Recipient a non-exclusive, worldwide,

+royalty-free copyright license to reproduce, prepare derivative works

+of, publicly display, publicly perform, distribute and sublicense the

+Contribution of such Contributor, if any, and such derivative works, in

+source code and object code form.</p> 

+ 

+<p class="list">b) Subject to the terms of this Agreement, each

+Contributor hereby grants Recipient a non-exclusive, worldwide,

+royalty-free patent license under Licensed Patents to make, use, sell,

+offer to sell, import and otherwise transfer the Contribution of such

+Contributor, if any, in source code and object code form. This patent

+license shall apply to the combination of the Contribution and the

+Program if, at the time the Contribution is added by the Contributor,

+such addition of the Contribution causes such combination to be covered

+by the Licensed Patents. The patent license shall not apply to any other

+combinations which include the Contribution. No hardware per se is

+licensed hereunder.</p> 

+ 

+<p class="list">c) Recipient understands that although each Contributor

+grants the licenses to its Contributions set forth herein, no assurances

+are provided by any Contributor that the Program does not infringe the

+patent or other intellectual property rights of any other entity. Each

+Contributor disclaims any liability to Recipient for claims brought by

+any other entity based on infringement of intellectual property rights

+or otherwise. As a condition to exercising the rights and licenses

+granted hereunder, each Recipient hereby assumes sole responsibility to

+secure any other intellectual property rights needed, if any. For

+example, if a third party patent license is required to allow Recipient

+to distribute the Program, it is Recipient's responsibility to acquire

+that license before distributing the Program.</p> 

+ 

+<p class="list">d) Each Contributor represents that to its knowledge it

+has sufficient copyright rights in its Contribution, if any, to grant

+the copyright license set forth in this Agreement.</p> 

+ 

+<p><b>3. REQUIREMENTS</b></p> 

+ 

+<p>A Contributor may choose to distribute the Program in object code

+form under its own license agreement, provided that:</p> 

+ 

+<p class="list">a) it complies with the terms and conditions of this

+Agreement; and</p> 

+ 

+<p class="list">b) its license agreement:</p> 

+ 

+<p class="list">i) effectively disclaims on behalf of all Contributors

+all warranties and conditions, express and implied, including warranties

+or conditions of title and non-infringement, and implied warranties or

+conditions of merchantability and fitness for a particular purpose;</p> 

+ 

+<p class="list">ii) effectively excludes on behalf of all Contributors

+all liability for damages, including direct, indirect, special,

+incidental and consequential damages, such as lost profits;</p> 

+ 

+<p class="list">iii) states that any provisions which differ from this

+Agreement are offered by that Contributor alone and not by any other

+party; and</p> 

+ 

+<p class="list">iv) states that source code for the Program is available

+from such Contributor, and informs licensees how to obtain it in a

+reasonable manner on or through a medium customarily used for software

+exchange.</p> 

+ 

+<p>When the Program is made available in source code form:</p> 

+ 

+<p class="list">a) it must be made available under this Agreement; and</p> 

+ 

+<p class="list">b) a copy of this Agreement must be included with each

+copy of the Program.</p> 

+ 

+<p>Contributors may not remove or alter any copyright notices contained

+within the Program.</p> 

+ 

+<p>Each Contributor must identify itself as the originator of its

+Contribution, if any, in a manner that reasonably allows subsequent

+Recipients to identify the originator of the Contribution.</p> 

+ 

+<p><b>4. COMMERCIAL DISTRIBUTION</b></p> 

+ 

+<p>Commercial distributors of software may accept certain

+responsibilities with respect to end users, business partners and the

+like. While this license is intended to facilitate the commercial use of

+the Program, the Contributor who includes the Program in a commercial

+product offering should do so in a manner which does not create

+potential liability for other Contributors. Therefore, if a Contributor

+includes the Program in a commercial product offering, such Contributor

+(&quot;Commercial Contributor&quot;) hereby agrees to defend and

+indemnify every other Contributor (&quot;Indemnified Contributor&quot;)

+against any losses, damages and costs (collectively &quot;Losses&quot;)

+arising from claims, lawsuits and other legal actions brought by a third

+party against the Indemnified Contributor to the extent caused by the

+acts or omissions of such Commercial Contributor in connection with its

+distribution of the Program in a commercial product offering. The

+obligations in this section do not apply to any claims or Losses

+relating to any actual or alleged intellectual property infringement. In

+order to qualify, an Indemnified Contributor must: a) promptly notify

+the Commercial Contributor in writing of such claim, and b) allow the

+Commercial Contributor to control, and cooperate with the Commercial

+Contributor in, the defense and any related settlement negotiations. The

+Indemnified Contributor may participate in any such claim at its own

+expense.</p> 

+ 

+<p>For example, a Contributor might include the Program in a commercial

+product offering, Product X. That Contributor is then a Commercial

+Contributor. If that Commercial Contributor then makes performance

+claims, or offers warranties related to Product X, those performance

+claims and warranties are such Commercial Contributor's responsibility

+alone. Under this section, the Commercial Contributor would have to

+defend claims against the other Contributors related to those

+performance claims and warranties, and if a court requires any other

+Contributor to pay any damages as a result, the Commercial Contributor

+must pay those damages.</p> 

+ 

+<p><b>5. NO WARRANTY</b></p> 

+ 

+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS

+PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS

+OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,

+ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY

+OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely

+responsible for determining the appropriateness of using and

+distributing the Program and assumes all risks associated with its

+exercise of rights under this Agreement , including but not limited to

+the risks and costs of program errors, compliance with applicable laws,

+damage to or loss of data, programs or equipment, and unavailability or

+interruption of operations.</p> 

+ 

+<p><b>6. DISCLAIMER OF LIABILITY</b></p> 

+ 

+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT

+NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,

+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING

+WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF

+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING

+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR

+DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED

+HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p> 

+ 

+<p><b>7. GENERAL</b></p> 

+ 

+<p>If any provision of this Agreement is invalid or unenforceable under

+applicable law, it shall not affect the validity or enforceability of

+the remainder of the terms of this Agreement, and without further action

+by the parties hereto, such provision shall be reformed to the minimum

+extent necessary to make such provision valid and enforceable.</p> 

+ 

+<p>If Recipient institutes patent litigation against any entity

+(including a cross-claim or counterclaim in a lawsuit) alleging that the

+Program itself (excluding combinations of the Program with other

+software or hardware) infringes such Recipient's patent(s), then such

+Recipient's rights granted under Section 2(b) shall terminate as of the

+date such litigation is filed.</p> 

+ 

+<p>All Recipient's rights under this Agreement shall terminate if it

+fails to comply with any of the material terms or conditions of this

+Agreement and does not cure such failure in a reasonable period of time

+after becoming aware of such noncompliance. If all Recipient's rights

+under this Agreement terminate, Recipient agrees to cease use and

+distribution of the Program as soon as reasonably practicable. However,

+Recipient's obligations under this Agreement and any licenses granted by

+Recipient relating to the Program shall continue and survive.</p> 

+ 

+<p>Everyone is permitted to copy and distribute copies of this

+Agreement, but in order to avoid inconsistency the Agreement is

+copyrighted and may only be modified in the following manner. The

+Agreement Steward reserves the right to publish new versions (including

+revisions) of this Agreement from time to time. No one other than the

+Agreement Steward has the right to modify this Agreement. The Eclipse

+Foundation is the initial Agreement Steward. The Eclipse Foundation may

+assign the responsibility to serve as the Agreement Steward to a

+suitable separate entity. Each new version of the Agreement will be

+given a distinguishing version number. The Program (including

+Contributions) may always be distributed subject to the version of the

+Agreement under which it was received. In addition, after a new version

+of the Agreement is published, Contributor may elect to distribute the

+Program (including its Contributions) under the new version. Except as

+expressly stated in Sections 2(a) and 2(b) above, Recipient receives no

+rights or licenses to the intellectual property of any Contributor under

+this Agreement, whether expressly, by implication, estoppel or

+otherwise. All rights in the Program not expressly granted under this

+Agreement are reserved.</p> 

+ 

+<p>This Agreement is governed by the laws of the State of New York and

+the intellectual property laws of the United States of America. No party

+to this Agreement will bring a legal action under this Agreement more

+than one year after the cause of action arose. Each party waives its

+rights to a jury trial in any resulting litigation.</p> 

+ 

+</body> 

+ 

+</html>
\ No newline at end of file
diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/notice.html b/mysql/org.eclipse.gemini.dbaccess.mysql/notice.html
new file mode 100644
index 0000000..fe1ce99
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/notice.html
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

+<html xmlns="http://www.w3.org/1999/xhtml"> 

+<head> 

+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 

+<title>Eclipse Foundation Software User Agreement</title> 

+</head> 

+ 

+<body lang="EN-US"> 

+<h2>Eclipse Foundation Software User Agreement</h2> 

+<p>April 14, 2010</p> 

+ 

+<h3>Usage Of Content</h3> 

+ 

+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS

+   (COLLECTIVELY &quot;CONTENT&quot;).  USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND

+   CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW.  BY USING THE CONTENT, YOU AGREE THAT YOUR USE

+   OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR

+   NOTICES INDICATED OR REFERENCED BELOW.  IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND

+   CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p> 

+ 

+<h3>Applicable Licenses</h3> 

+ 

+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 (&quot;EPL&quot;) and Apache Software License Version 2.0 (&quot;ASL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> and a copy of the ASL is available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>. For purposes of the EPL, &quot;Program&quot; will mean the Content.</p> 

+ 

+<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p> 

+ 

+<ul> 

+       <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content.  Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li> 

+       <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li> 

+       <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.  Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;.  Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins

+      and/or Fragments associated with that Feature.</li> 

+       <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li> 

+</ul> 

+ 

+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and

+Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;).  Abouts and Feature Licenses may be located in any directory of a Download or Module

+including, but not limited to the following locations:</p> 

+ 

+<ul> 

+       <li>The top-level (root) directory</li> 

+       <li>Plug-in and Fragment directories</li> 

+       <li>Inside Plug-ins and Fragments packaged as JARs</li> 

+       <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li> 

+       <li>Feature directories</li> 

+</ul> 

+ 

+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the

+installation process.  If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or

+inform you where you can locate them.  Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.

+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in

+that directory.</p> 

+ 

+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.  SOME OF THESE

+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p> 

+ 

+<ul> 

+       <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li> 

+       <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li> 

+       <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li> 

+       <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li> 

+       <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li> 

+</ul> 

+ 

+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT.  If no About, Feature License, or Feature Update License is provided, please

+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p> 

+ 

+ 

+<h3>Use of Provisioning Technology</h3> 

+ 

+<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse

+   Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or

+   other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to

+   install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a 

+       href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a> 

+   (&quot;Specification&quot;).</p> 

+ 

+<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the

+   applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology

+   in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the

+   Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p> 

+ 

+<ol> 

+       <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology

+       on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based

+       product.</li> 

+       <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be

+       accessed and copied to the Target Machine.</li> 

+       <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable

+       Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target

+       Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern

+       the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such

+       indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li> 

+</ol> 

+ 

+<h3>Cryptography</h3> 

+ 

+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to

+   another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,

+   possession, or use, and re-export of encryption software, to see if this is permitted.</p> 

+ 

+<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p> 

+</body> 

+</html> 
\ No newline at end of file
diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/pom.xml b/mysql/org.eclipse.gemini.dbaccess.mysql/pom.xml
new file mode 100644
index 0000000..5b29602
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/pom.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!--

+    Copyright (c) 2010 SAP AG.

+    All rights reserved. This program and the accompanying materials

+    are made available under the terms of the Eclipse Public License v1.0

+    which accompanies this distribution, and is available at

+    http://www.eclipse.org/legal/epl-v10.html

+   

+    Contributors:

+        jkissner - initial implementation

+ -->

+

+<project xmlns="http://maven.apache.org/POM/4.0.0"

+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <modelVersion>4.0.0</modelVersion>

+

+  <parent>

+    <groupId>org.eclipse</groupId>

+    <artifactId>gemini.dbaccess.parent</artifactId>

+    <version>1.1.0-SNAPSHOT</version>

+    <relativePath>../../mvn_parent</relativePath>

+  </parent>

+

+  <artifactId>org.eclipse.gemini.dbaccess.mysql</artifactId>

+    <version>1.1.0-SNAPSHOT</version>

+  <packaging>eclipse-plugin</packaging>

+</project>

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.jdt.core.prefs b/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..f287d53
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1

+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

+org.eclipse.jdt.core.compiler.compliance=1.6

+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

+org.eclipse.jdt.core.compiler.source=1.6

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.pde.core.prefs b/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..adff9e5
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,5 @@
+#Wed Nov 25 13:45:02 EST 2009

+eclipse.preferences.version=1

+pluginProject.equinox=false

+pluginProject.extensions=false

+resolve.requirebundle=false

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/Activator.java b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/Activator.java
new file mode 100644
index 0000000..e708369
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/Activator.java
@@ -0,0 +1,38 @@
+package org.eclipse.gemini.dbaccess.mysql;

+

+import java.util.Hashtable;

+

+import org.osgi.framework.BundleActivator;

+import org.osgi.framework.BundleContext;

+import org.osgi.framework.ServiceRegistration;

+

+import org.osgi.service.jdbc.DataSourceFactory;

+

+import org.eclipse.gemini.dbaccess.mysql.service.MySqlServiceProperties;

+

+/**

+ * Creates a {@link DataSourceFactory} for MySQL JDBC driver.

+ */

+public class Activator implements BundleActivator {

+    

+    private ServiceRegistration dsfService;	

+	

+    public void start(BundleContext context) throws Exception {

+        System.out.println("Gemini DBAccess - MySQL JDBC starting");

+        Hashtable<String,String> props = new Hashtable<String,String>();

+        props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, 

+                  MySqlServiceProperties.MYSQL_DRIVER_NAME);    

+        

+        dsfService = context.registerService( 

+                DataSourceFactory.class.getName(),

+                new ClientDataSourceFactory(),

+                props);

+

+    }

+

+    public void stop(BundleContext context) throws Exception {

+        if (dsfService != null) {

+            dsfService.unregister();

+        }

+    }

+}

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/ClientDataSourceFactory.java b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/ClientDataSourceFactory.java
new file mode 100644
index 0000000..45be847
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/ClientDataSourceFactory.java
@@ -0,0 +1,62 @@
+/*******************************************************************************

+ * Copyright (c) 2010 Oracle.

+ * All rights reserved. This program and the accompanying materials

+ * are made available under the terms of the Eclipse Public License v1.0

+ * and Apache License v2.0 which accompanies this distribution. 

+ * The Eclipse Public License is available at

+ *     http://www.eclipse.org/legal/epl-v10.html

+ * and the Apache License v2.0 is available at 

+ *     http://www.opensource.org/licenses/apache2.0.php.

+ * You may elect to redistribute this code under either of these licenses.

+ *

+ * Contributors:

+ *     mkeith - Template for JDBC driver support

+ *     tware - MySQL driver class additions

+ ******************************************************************************/

+

+package org.eclipse.gemini.dbaccess.mysql;

+

+import java.sql.Driver;

+import java.sql.SQLException;

+

+import javax.sql.ConnectionPoolDataSource;

+import javax.sql.DataSource;

+import javax.sql.XADataSource;

+

+import org.eclipse.gemini.dbaccess.AbstractDataSourceFactory;

+

+import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;

+import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;

+import com.mysql.jdbc.jdbc2.optional.MysqlXADataSource;

+

+/**

+ * A factory for creating MySQL data sources. The properties specified

+ * in the create methods determine how the created object is configured.

+ *

+ * This service also supports a URL-based data source. 

+ */

+public class ClientDataSourceFactory extends AbstractDataSourceFactory {

+    

+    public ClientDataSourceFactory() {}

+

+    @Override

+    public Driver newJdbcDriver() throws SQLException {

+        return new com.mysql.jdbc.Driver();

+    }

+

+    @Override

+    public DataSource newDataSource() throws SQLException {

+        return new MysqlDataSource();

+    }

+

+    @Override

+    public ConnectionPoolDataSource newConnectionPoolDataSource() 

+            throws SQLException {

+        return new MysqlConnectionPoolDataSource();

+    }

+

+    @Override

+    public XADataSource newXADataSource() throws SQLException {

+        return new MysqlXADataSource();

+    }

+}

diff --git a/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/service/MySqlServiceProperties.java b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/service/MySqlServiceProperties.java
new file mode 100644
index 0000000..c6f79c7
--- /dev/null
+++ b/mysql/org.eclipse.gemini.dbaccess.mysql/src/org/eclipse/gemini/dbaccess/mysql/service/MySqlServiceProperties.java
@@ -0,0 +1,31 @@
+/*******************************************************************************

+ * Copyright (c) 2010 Oracle.

+ * All rights reserved. This program and the accompanying materials

+ * are made available under the terms of the Eclipse Public License v1.0

+ * and Apache License v2.0 which accompanies this distribution. 

+ * The Eclipse Public License is available at

+ *     http://www.eclipse.org/legal/epl-v10.html

+ * and the Apache License v2.0 is available at 

+ *     http://www.opensource.org/licenses/apache2.0.php.

+ * You may elect to redistribute this code under either of these licenses.

+ *

+ * Contributors:

+ *     tware - Added MySQL constants

+ *     mkeith - Refactorization

+ ******************************************************************************/

+

+package org.eclipse.gemini.dbaccess.mysql.service;

+

+/**

+ * Service property values for MySQL data source factory services.

+ */

+public class MySqlServiceProperties {

+

+    // Register data source factory service under the driver class name

+    public static final String MYSQL_DRIVER_CLASS = "com.mysql.jdbc.Driver";

+

+    // All MySQL DataSourceFactory services will have their

+    // DataSourceFactory.OSGI_JDBC_DRIVER_NAME service property set to this driver name

+    public static final String MYSQL_DRIVER_NAME = "MySQL";

+

+}

diff --git a/org.eclipse.gemini.dbaccess.util/.classpath b/org.eclipse.gemini.dbaccess.util/.classpath
new file mode 100644
index 0000000..8a8f166
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<classpath>

+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>

+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>

+	<classpathentry kind="src" path="src"/>

+	<classpathentry kind="output" path="bin"/>

+</classpath>

diff --git a/org.eclipse.gemini.dbaccess.util/.project b/org.eclipse.gemini.dbaccess.util/.project
new file mode 100644
index 0000000..da7d2ce
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<projectDescription>

+	<name>org.eclipse.gemini.dbaccess.util</name>

+	<comment></comment>

+	<projects>

+	</projects>

+	<buildSpec>

+		<buildCommand>

+			<name>org.eclipse.jdt.core.javabuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.ManifestBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+		<buildCommand>

+			<name>org.eclipse.pde.SchemaBuilder</name>

+			<arguments>

+			</arguments>

+		</buildCommand>

+	</buildSpec>

+	<natures>

+		<nature>org.eclipse.pde.PluginNature</nature>

+		<nature>org.eclipse.jdt.core.javanature</nature>

+	</natures>

+</projectDescription>

diff --git a/org.eclipse.gemini.dbaccess.util/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.gemini.dbaccess.util/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..ec9e8a7
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Oct 19 21:10:28 CEST 2011

+eclipse.preferences.version=1

+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

+org.eclipse.jdt.core.compiler.compliance=1.6

+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

+org.eclipse.jdt.core.compiler.source=1.6

diff --git a/org.eclipse.gemini.dbaccess.util/META-INF/MANIFEST.MF b/org.eclipse.gemini.dbaccess.util/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..4cc63b2
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Util
+Bundle-SymbolicName: org.eclipse.gemini.dbaccess.util
+Bundle-Version: 1.1.0.qualifier
+Bundle-Vendor: Eclipse
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
+Export-Package: org.eclipse.gemini.dbaccess,
+ org.eclipse.gemini.jdbc
+Import-Package: org.osgi.service.jdbc;version="1.0.0"
+
diff --git a/org.eclipse.gemini.dbaccess.util/build.properties b/org.eclipse.gemini.dbaccess.util/build.properties
new file mode 100644
index 0000000..aed1551
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/build.properties
@@ -0,0 +1,5 @@
+source.. = src/

+output.. = bin/

+bin.includes = META-INF/,\

+               .,\

+               src/

diff --git a/org.eclipse.gemini.dbaccess.util/pom.xml b/org.eclipse.gemini.dbaccess.util/pom.xml
new file mode 100644
index 0000000..b34bc8b
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/pom.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!--

+    Copyright (c) 2010 SAP AG.

+    All rights reserved. This program and the accompanying materials

+    are made available under the terms of the Eclipse Public License v1.0

+    which accompanies this distribution, and is available at

+    http://www.eclipse.org/legal/epl-v10.html

+   

+    Contributors:

+        jkissner - initial implementation

+ -->

+

+<project xmlns="http://maven.apache.org/POM/4.0.0"

+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <modelVersion>4.0.0</modelVersion>

+

+  <parent>

+    <groupId>org.eclipse</groupId>

+    <artifactId>gemini.dbaccess.parent</artifactId>

+    <version>1.1.0-SNAPSHOT</version>

+    <relativePath>../mvn_parent</relativePath>

+  </parent>

+

+  <artifactId>org.eclipse.gemini.dbaccess.util</artifactId>

+    <version>1.1.0-SNAPSHOT</version>

+  <packaging>eclipse-plugin</packaging>

+</project>

diff --git a/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/AbstractDataSourceFactory.java b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/AbstractDataSourceFactory.java
new file mode 100644
index 0000000..efbf831
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/AbstractDataSourceFactory.java
@@ -0,0 +1,284 @@
+/*******************************************************************************

+ * Copyright (c) 2010 Oracle.

+ * All rights reserved. This program and the accompanying materials

+ * are made available under the terms of the Eclipse Public License v1.0

+ * and Apache License v2.0 which accompanies this distribution. 

+ * The Eclipse Public License is available at

+ *     http://www.eclipse.org/legal/epl-v10.html

+ * and the Apache License v2.0 is available at 

+ *     http://www.opensource.org/licenses/apache2.0.php.

+ * You may elect to redistribute this code under either of these licenses.

+ *

+ * Contributors:

+ *     JJ Snyder - Embedded Derby JDBC support 

+ *     mkeith - Abstracted out the logic and made reusable for all databases

+ ******************************************************************************/

+

+package org.eclipse.gemini.dbaccess;

+

+import java.lang.reflect.Method;

+import java.sql.Driver;

+import java.sql.SQLException;

+import java.util.ArrayList;

+import java.util.Enumeration;

+import java.util.List;

+import java.util.Properties;

+import java.beans.PropertyDescriptor;

+import java.beans.Introspector;

+

+import javax.sql.ConnectionPoolDataSource;

+import javax.sql.DataSource;

+import javax.sql.XADataSource;

+

+import org.osgi.service.jdbc.DataSourceFactory;

+

+/**

+ * Abstract factory for creating JDBC data sources and drivers. The properties 

+ * specified in the create methods determine how the created object is configured.

+ * 

+ * Sample code for obtaining a network data source (e.g. using Derby):

+ * 

+ *     ServiceTracker tracker = 

+ *         new ServiceTracker(context, DataSourceFactory.class.getName(), null); 

+ *     tracker.open();

+ *     DataSourceFactory dsf = (DataSourceFactory) tracker.getService(); 

+ *     Properties props = new Properties();

+ *     props.put(DataSourceFactory.JDBC_SERVER_NAME, "localhost");

+ *     props.put(DataSourceFactory.JDBC_PORT_NUMBER, "1527");

+ *     props.put(DataSourceFactory.JDBC_DATABASE_NAME, "myDB");

+ *     props.put(DataSourceFactory.JDBC_USER, "mike");

+ *     props.put(DataSourceFactory.JDBC_PASSWORD, "password");

+ *     DataSource ds = dsf.createDataSource(props);

+ *

+ * This service also supports a URL-based data source. The following 3 properties

+ * can be provided instead of the 5 properties above if the driver supports URLs.

+ * 

+ *     props.put(DataSourceFactory.JDBC_URL, "jdbc:derby://localhost:1527/myDB");

+ *     props.put(DataSourceFactory.JDBC_USER, "mike");

+ *     props.put(DataSourceFactory.JDBC_PASSWORD, "password");

+ */

+public abstract class AbstractDataSourceFactory implements DataSourceFactory {

+

+    /*****************************************************/

+    /* Abstract methods must be implemented by subclass. */

+    /*                                                   */

+    /* Subclass drivers must return an instance of the   */

+    /* appropriate driver class implementing the correct */

+    /* interface return type.                            */

+    /*****************************************************/

+

+    public abstract Driver newJdbcDriver() throws SQLException;

+

+    public abstract DataSource newDataSource() throws SQLException;

+

+    public abstract ConnectionPoolDataSource newConnectionPoolDataSource() throws SQLException;

+

+    public abstract XADataSource newXADataSource() throws SQLException;

+

+

+    /*************************/

+    /* DataSourceFactory API */

+    /*************************/

+

+    /**

+     * Create a DataSource object.

+     * 

+     * @param props The properties that define the DataSource implementation to

+     *              create and how the DataSource is configured

+     * @return The configured DataSource

+     * @throws SQLException

+     * @see org.osgi.service.jdbc.DataSourceFactory#createDataSource(java.util.Properties)

+     */

+    public DataSource createDataSource(Properties props) throws SQLException {

+        if (props == null) props = new Properties();

+        if (props.get(DataSourceFactory.JDBC_URL) != null) {

+            return new UrlBasedDriverDataSource(props, newJdbcDriver());

+        } else {

+            DataSource dataSource = newDataSource();

+            setDataSourceProperties(dataSource, props);

+            return dataSource;

+        }

+    }

+

+    /**

+     * Create a ConnectionPoolDataSource object.

+     * 

+     * @param props The properties that define the ConnectionPoolDataSource

+     *              implementation to create and how the ConnectionPoolDataSource is

+     *              configured

+     * @return The configured ConnectionPoolDataSource

+     * @throws SQLException

+     * @see org.osgi.service.jdbc.DataSourceFactory#createConnectionPoolDataSource(java.util.Properties)

+     */

+    public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException {

+        if (props == null) props = new Properties();

+        ConnectionPoolDataSource dataSource = newConnectionPoolDataSource();

+        setDataSourceProperties(dataSource, props);

+        return dataSource;

+    }

+

+    /**

+     * Create an XADataSource object.

+     * 

+     * @param props The properties that define the XADataSource implementation

+     *              to create and how the XADataSource is configured

+     * @return The configured XADataSource

+     * @throws SQLException

+     * @see org.osgi.service.jdbc.DataSourceFactory#createXADataSource(java.util.Properties)

+     */

+    public XADataSource createXADataSource(Properties props) throws SQLException {

+        if (props == null) props = new Properties();

+        XADataSource dataSource = newXADataSource();

+        setDataSourceProperties(dataSource, props);

+        return dataSource;

+    }

+

+    /**

+     * Create a new JDBC Driver.

+     * 

+     * @param props The properties used to configure the Driver.  Null 

+     *              indicates no properties.

+     *              If the property cannot be set on the Driver being 

+     *              created then an SQLException must be thrown.

+     * @return A configured java.sql.Driver.

+     * @throws SQLException If the driver cannot be created

+     */

+    public Driver createDriver(Properties props) throws SQLException {

+        Driver driver = newJdbcDriver();

+        setDataSourceProperties(driver, props);

+        return driver;

+    }

+

+    /**********************/

+    /* Supporting methods */

+    /**********************/

+

+	protected void setDataSourceProperties(Object object, Properties props)

+			throws SQLException {

+

+	    if (props == null) return;

+	    

+		Enumeration<?> enumeration = props.keys();

+		while (enumeration.hasMoreElements()) {

+			String name = (String) enumeration.nextElement();

+			setProperty(object, name, props.getProperty(name));

+		}

+	}

+

+	protected void throwSQLException(Exception cause, String theType, String value)

+			throws SQLException {

+		SQLException sqlException = 

+		    new SQLException("Invalid " + theType + " value: " + value);

+		sqlException.initCause(cause);

+		throw sqlException;

+	}

+

+	protected Object toBasicType(String value, String type) throws SQLException {

+

+        // Early return from first "if" condition that evaluates to true

+

+        if (value == null)

+			return null;

+

+        if (type == null || type.equals(String.class.getName()))

+			return value;

+

+        if (type.equals(Integer.class.getName()) || type.equals(int.class.getName())) {

+			try { return Integer.valueOf(value); } 

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Integer", value);

+			}

+		}

+

+		if (type.equals(Float.class.getName()) || type.equals(float.class.getName())) {

+			try { return Float.valueOf(value); }

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Float", value);

+			}

+		}

+

+		if (type.equals(Long.class.getName()) || type.equals(long.class.getName())) {

+			try { return Long.valueOf(value); }

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Long", value);

+			}

+		}

+

+		if (type.equals(Double.class.getName()) || type.equals(double.class.getName())) {

+			try { return Double.valueOf(value); }

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Double", value);

+			}

+		}

+

+		if (type.equals(Character.class.getName()) || type.equals(char.class.getName())) {

+			if (value.length() != 1) {

+				throw new SQLException("Invalid Character value: " + value);

+			}

+			return new Character(value.charAt(0));

+		}

+

+		if (type.equals(Byte.class.getName()) || type.equals(byte.class.getName())) {

+			try { return Byte.valueOf(value); }

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Byte", value);

+			}

+		}

+

+		if (type.equals(Short.class.getName()) || type.equals(short.class.getName())) {

+			try { return Short.valueOf(value); }

+			catch (NumberFormatException e) {

+				throwSQLException(e, "Short", value);

+			}

+		}

+

+        // Will be "false" if not in correct format...

+        if (type.equals(Boolean.class.getName()) || type.equals(boolean.class.getName())) {

+			return Boolean.valueOf(value);

+		}

+

+        throw new SQLException("Unrecognized property type: " + type);

+	}

+

+	protected void setProperty(Object object, String name, String value)

+			throws SQLException {

+		Class<?> type = object.getClass();

+

+		PropertyDescriptor[] descriptors;

+		try {

+			descriptors = Introspector.getBeanInfo(type)

+					                  .getPropertyDescriptors();

+		} catch (Exception ex) {

+			SQLException sqlException = new SQLException();

+			sqlException.initCause(ex);

+			throw sqlException;

+		}

+		List<String> names = new ArrayList<String>();

+

+		for (int i = 0; i < descriptors.length; i++) {

+			if (descriptors[i].getWriteMethod() == null) {

+				continue;

+			}

+

+			if (descriptors[i].getName().equals(name)) {

+				Method method = descriptors[i].getWriteMethod();

+				Class<?> paramType = method.getParameterTypes()[0];

+				Object param = toBasicType(value, paramType.getName());

+

+				try {

+					method.invoke(object, new Object[] {param});

+				}

+				catch (Exception ex) {

+					SQLException sqlException = new SQLException();

+					sqlException.initCause(ex);

+					throw sqlException;

+				}

+				return;

+			}

+

+			names.add(descriptors[i].getName());

+		}

+		throw new SQLException("No such property: " + name +

+							   ", exists.  Writable properties are: " + names);

+	}

+}

diff --git a/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/UrlBasedDriverDataSource.java b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/UrlBasedDriverDataSource.java
new file mode 100644
index 0000000..611f00e
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/dbaccess/UrlBasedDriverDataSource.java
@@ -0,0 +1,85 @@
+/*******************************************************************************

+ * Copyright (c) 2010 Oracle.

+ * All rights reserved. This program and the accompanying materials

+ * are made available under the terms of the Eclipse Public License v1.0

+ * and Apache License v2.0 which accompanies this distribution. 

+ * The Eclipse Public License is available at

+ *     http://www.eclipse.org/legal/epl-v10.html

+ * and the Apache License v2.0 is available at 

+ *     http://www.opensource.org/licenses/apache2.0.php.

+ * You may elect to redistribute this code under either of these licenses.

+ *

+ * Contributors:

+ *     mkeith - URL support for Client/Server Derby JDBC  

+ ******************************************************************************/

+

+package org.eclipse.gemini.dbaccess;

+

+import java.io.PrintWriter;

+import java.util.Properties;

+import java.sql.Connection;

+import java.sql.DriverManager;

+import java.sql.SQLException;

+import java.sql.Driver;

+

+import static org.osgi.service.jdbc.DataSourceFactory.*;

+

+/** 

+ * An abbreviated/simplified DataSource impl that takes a URL from the client

+ * and just returns a thin data source wrapper around the basic JDBC driver.

+ */

+class UrlBasedDriverDataSource implements javax.sql.DataSource {

+

+    Driver driver;

+    Properties properties = null;

+    String url = null;

+

+    /**

+     * @param properties The properties to use for operations on the driver

+     * @param embedded Whether to wrap an embedded or a client driver

+     */

+    public UrlBasedDriverDataSource(Properties properties, Driver driver) {

+        this.driver = driver;

+        this.properties = (Properties) properties.clone();

+        this.url = properties.getProperty(JDBC_URL);

+    }

+

+    public Connection getConnection() throws java.sql.SQLException {

+        return driver.connect(url, properties);

+    }

+

+    public Connection getConnection(String user, String password) throws java.sql.SQLException {

+        Properties localProps = (Properties) properties.clone();

+        localProps.put(JDBC_USER, user);

+        localProps.put(JDBC_PASSWORD, password);

+        return driver.connect(url, localProps);

+    }

+ 

+    public boolean isWrapperFor(Class<?> cls) { 

+        return cls.isInstance(driver);

+    }

+    

+    public <T> T unwrap(Class<T> cls) { 

+        return (isWrapperFor(cls)) 

+            ? (T) driver 

+            : null;

+    }

+

+    public PrintWriter getLogWriter() throws SQLException { 

+        return DriverManager.getLogWriter(); 

+    }

+

+    public int getLoginTimeout() throws SQLException { 

+        return DriverManager.getLoginTimeout(); 

+    }

+

+    // Don't support setting log writer or timeout 

+

+    public void setLogWriter(PrintWriter writer) throws SQLException {

+        throw new SQLException("Can't set Log Writer on URL data source");

+    }

+    

+    public void setLoginTimeout(int timeout) throws SQLException {

+        throw new SQLException("Can't set Login Timeout on URL data source");

+    }

+}
\ No newline at end of file
diff --git a/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/jdbc/DataSourceFactory.java b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/jdbc/DataSourceFactory.java
new file mode 100644
index 0000000..3fdf155
--- /dev/null
+++ b/org.eclipse.gemini.dbaccess.util/src/org/eclipse/gemini/jdbc/DataSourceFactory.java
@@ -0,0 +1,222 @@
+/*
+ * Copyright (c) OSGi Alliance (2009, 2010). All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.eclipse.gemini.jdbc;
+
+import java.sql.Driver;
+import java.sql.SQLException;
+import java.util.Properties;
+
+import javax.sql.ConnectionPoolDataSource;
+import javax.sql.DataSource;
+import javax.sql.XADataSource;
+
+/**
+ * A factory for JDBC connection factories. There are 3 preferred connection
+ * factories for getting JDBC connections: <code>javax.sql.DataSource</code>,
+ * <code>javax.sql.ConnectionPoolDataSource</code>, and
+ * <code>javax.sql.XADataSource</code>.
+ * 
+ * DataSource providers should implement this interface and register it as an
+ * OSGi service with the JDBC driver class name in the
+ * {@link #OSGI_JDBC_DRIVER_CLASS} property.
+ * 
+ * @ThreadSafe
+ */
+public interface DataSourceFactory {
+	/**
+	 * Service property used by a JDBC driver to declare the driver class when
+	 * registering a JDBC DataSourceFactory service. Clients may filter or test
+	 * this property to determine if the driver is suitable, or the desired one.
+	 */
+	public static final String	OSGI_JDBC_DRIVER_CLASS		= "osgi.jdbc.driver.class";
+
+	/**
+	 * Service property used by a JDBC driver to declare the driver name when
+	 * registering a JDBC DataSourceFactory service. Clients may filter or test
+	 * this property to determine if the driver is suitable, or the desired one.
+	 */
+	public static final String	OSGI_JDBC_DRIVER_NAME		= "osgi.jdbc.driver.name";
+
+	/**
+	 * Service property used by a JDBC driver to declare the driver version when
+	 * registering a JDBC DataSourceFactory service. Clients may filter or test
+	 * this property to determine if the driver is suitable, or the desired one.
+	 */
+	public static final String	OSGI_JDBC_DRIVER_VERSION	= "osgi.jdbc.driver.version";
+
+	/**
+	 * The "databaseName" property that DataSource clients should supply a value
+	 * for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_DATABASE_NAME			= "databaseName";
+
+	/**
+	 * The "dataSourceName" property that DataSource clients should supply a
+	 * value for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_DATASOURCE_NAME		= "dataSourceName";
+
+	/**
+	 * The "description" property that DataSource clients should supply a value
+	 * for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_DESCRIPTION			= "description";
+
+	/**
+	 * The "networkProtocol" property that DataSource clients should supply a
+	 * value for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_NETWORK_PROTOCOL		= "networkProtocol";
+
+	/**
+	 * The "password" property that DataSource clients should supply a value for
+	 * when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_PASSWORD				= "password";
+
+	/**
+	 * The "portNumber" property that DataSource clients should supply a value
+	 * for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_PORT_NUMBER			= "portNumber";
+
+	/**
+	 * The "roleName" property that DataSource clients should supply a value for
+	 * when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_ROLE_NAME				= "roleName";
+
+	/**
+	 * The "serverName" property that DataSource clients should supply a value
+	 * for when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_SERVER_NAME			= "serverName";
+
+	/**
+	 * The "user" property that DataSource clients should supply a value for
+	 * when calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_USER					= "user";
+
+	/**
+	 * The "url" property that DataSource clients should supply a value for when
+	 * calling {@link #createDataSource(Properties)}.
+	 */
+	public static final String	JDBC_URL					= "url";
+
+	/**
+	 * The "initialPoolSize" property that ConnectionPoolDataSource and
+	 * XADataSource clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_INITIAL_POOL_SIZE		= "initialPoolSize";
+
+	/**
+	 * The "maxIdleTime" property that ConnectionPoolDataSource and XADataSource
+	 * clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_MAX_IDLE_TIME			= "maxIdleTime";
+
+	/**
+	 * The "maxPoolSize" property that ConnectionPoolDataSource and XADataSource
+	 * clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_MAX_POOL_SIZE			= "maxPoolSize";
+
+	/**
+	 * The "maxStatements" property that ConnectionPoolDataSource and
+	 * XADataSource clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_MAX_STATEMENTS			= "maxStatements";
+
+	/**
+	 * The "minPoolSize" property that ConnectionPoolDataSource and XADataSource
+	 * clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_MIN_POOL_SIZE			= "minPoolSize";
+
+	/**
+	 * The "propertyCycle" property that ConnectionPoolDataSource and
+	 * XADataSource clients should supply a value for when calling
+	 * {@link #createConnectionPoolDataSource(Properties)} or
+	 * {@link #createXADataSource(Properties)}.
+	 */
+	public static final String	JDBC_PROPERTY_CYCLE			= "propertyCycle";
+
+	/**
+	 * Create a new <code>DataSource</code> using the given properties.
+	 * 
+	 * @param props The properties used to configure the <code>DataSource</code>
+	 *        . <code>null</code> indicates no properties. If the property
+	 *        cannot be set on the <code>DataSource</code> being created then a
+	 *        <code>SQLException</code> must be thrown.
+	 * @return A configured <code>DataSource</code>.
+	 * @throws SQLException If the <code>DataSource</code> cannot be created.
+	 */
+	public DataSource createDataSource(Properties props) throws SQLException;
+
+	/**
+	 * Create a new <code>ConnectionPoolDataSource</code> using the given
+	 * properties.
+	 * 
+	 * @param props The properties used to configure the
+	 *        <code>ConnectionPoolDataSource</code>. <code>null</code> indicates
+	 *        no properties. If the property cannot be set on the
+	 *        <code>ConnectionPoolDataSource</code> being created then a
+	 *        <code>SQLException</code> must be thrown.
+	 * @return A configured <code>ConnectionPoolDataSource</code>.
+	 * @throws SQLException If the <code>ConnectionPoolDataSource</code> cannot
+	 *         be created.
+	 */
+	public ConnectionPoolDataSource createConnectionPoolDataSource(
+			Properties props) throws SQLException;
+
+	/**
+	 * Create a new <code>XADataSource</code> using the given properties.
+	 * 
+	 * @param props The properties used to configure the
+	 *        <code>XADataSource</code>. <code>null</code> indicates no
+	 *        properties. If the property cannot be set on the
+	 *        <code>XADataSource</code> being created then a
+	 *        <code>SQLException</code> must be thrown.
+	 * @return A configured <code>XADataSource</code>.
+	 * @throws SQLException If the <code>XADataSource</code> cannot be created.
+	 */
+	public XADataSource createXADataSource(Properties props)
+			throws SQLException;
+
+	/**
+	 * Create a new <code>Driver</code> using the given properties.
+	 * 
+	 * @param props The properties used to configure the <code>Driver</code>.
+	 *        <code>null</code> indicates no properties. If the property cannot
+	 *        be set on the <code>Driver</code> being created then a
+	 *        <code>SQLException</code> must be thrown.
+	 * @return A configured <code>Driver</code>.
+	 * @throws SQLException If the <code>Driver</code> cannot be created.
+	 */
+	public Driver createDriver(Properties props) throws SQLException;
+}