com.caucho.jdbc.mysql
Class Driver

java.lang.Object
  |
  +--com.caucho.jdbc.mysql.Driver
All Implemented Interfaces:
java.sql.Driver

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

This is an experimental driver.

The driver syntax looks like jdbc:mysql_caucho://localhost:3306/database

The only parameter is character-encoding.


Constructor Summary
Driver()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          Driver function which returns true if the url is one of ours.
 java.sql.Connection connect(java.lang.String url, java.util.Properties info)
          Driver interface to create a new connection.
 java.lang.String getEncoding()
          Gets the character encoding.
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties properties)
           
 boolean jdbcCompliant()
           
 void setEncoding(java.lang.String encoding)
          Sets the character encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Driver

public Driver()
Method Detail

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the character encoding.


getEncoding

public java.lang.String getEncoding()
Gets the character encoding.


acceptsURL

public boolean acceptsURL(java.lang.String url)
Driver function which returns true if the url is one of ours.

Specified by:
acceptsURL in interface java.sql.Driver

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties info)
                            throws java.sql.SQLException
Driver interface to create a new connection.

Specified by:
connect in interface java.sql.Driver
java.sql.SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface java.sql.Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface java.sql.Driver

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                     java.util.Properties properties)
Specified by:
getPropertyInfo in interface java.sql.Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface java.sql.Driver