org.drizzle.jdbc
Class DrizzleDriver

java.lang.Object
  extended by org.drizzle.jdbc.DrizzleDriver
All Implemented Interfaces:
java.sql.Driver

public final class DrizzleDriver
extends java.lang.Object
implements java.sql.Driver

The base SQL DrizzleDriver class. User: marcuse Date: Jan 14, 2009 Time: 7:46:09 AM


Constructor Summary
DrizzleDriver()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          returns true if the driver can accept the url.
 java.sql.Connection connect(java.lang.String url, java.util.Properties info)
          Connect to the given connection string.
 int getMajorVersion()
          gets the major version of the driver.
 int getMinorVersion()
          gets the minor version of the driver.
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
          get the property info.
 boolean jdbcCompliant()
          checks if the driver is jdbc compliant (not yet!).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrizzleDriver

public DrizzleDriver()
Method Detail

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties info)
                            throws java.sql.SQLException
Connect to the given connection string.

the properties are currently ignored

Specified by:
connect in interface java.sql.Driver
Parameters:
url - the url to connect to
info - the properties of the connection - ignored at the moment
Returns:
a connection
Throws:
java.sql.SQLException - if it is not possible to connect

acceptsURL

public boolean acceptsURL(java.lang.String url)
returns true if the driver can accept the url.

Specified by:
acceptsURL in interface java.sql.Driver
Parameters:
url - the url to test
Returns:
true if the url is valid for this driver

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                     java.util.Properties info)
                                              throws java.sql.SQLException
get the property info. TODO: not implemented!

Specified by:
getPropertyInfo in interface java.sql.Driver
Parameters:
url - the url to get properties for
info - the info props
Returns:
something - not implemented
Throws:
java.sql.SQLException - if there is a problem getting the property info

getMajorVersion

public int getMajorVersion()
gets the major version of the driver.

Specified by:
getMajorVersion in interface java.sql.Driver
Returns:
the major versions

getMinorVersion

public int getMinorVersion()
gets the minor version of the driver.

Specified by:
getMinorVersion in interface java.sql.Driver
Returns:
the minor version

jdbcCompliant

public boolean jdbcCompliant()
checks if the driver is jdbc compliant (not yet!).

Specified by:
jdbcCompliant in interface java.sql.Driver
Returns:
false since the driver is not compliant


Copyright © 2012. All Rights Reserved.