simpledb.remote
Class SimpleDriver

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

public class SimpleDriver
extends DriverAdapter

The SimpleDB database driver.

Author:
Edward Sciore

Constructor Summary
SimpleDriver()
           
 
Method Summary
 Connection connect(String url, 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 Connection connect(String url,
                          Properties prop)
                   throws 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 Driver
Overrides:
connect in class DriverAdapter
Throws:
SQLException
See Also:
Driver.connect(java.lang.String, Properties)


Copyright © 2011. All Rights Reserved.