simpledb.remote
Class SimpleDriver

java.lang.Object
  extended by simpledb.remote.DriverAdapter
      extended by simpledb.remote.SimpleDriver
All Implemented Interfaces:
java.sql.Driver

public class SimpleDriver
extends DriverAdapter

The SimpleDB database driver.

Author:
Edward Sciore

Constructor Summary
SimpleDriver()
           
 
Method Summary
 java.sql.Connection connect(java.lang.String url, java.util.Properties prop)
          Connects to the SimpleDB server on the specified host.
 
Methods inherited from class simpledb.remote.DriverAdapter
acceptsURL, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDriver

public SimpleDriver()
Method Detail

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties prop)
                            throws java.sql.SQLException
Connects to the SimpleDB server on the specified host. The method retrieves the RemoteDriver stub from the RMI registry on the specified host. It then calls the connect method on that stub, which in turn creates a new connection and returns the RemoteConnection stub for it. This stub is wrapped in a SimpleConnection object and is returned.

The current implementation of this method ignores the properties argument.

Specified by:
connect in interface java.sql.Driver
Overrides:
connect in class DriverAdapter
Throws:
java.sql.SQLException
See Also:
Driver.connect(java.lang.String, Properties)