com.googlecode.jdbw.server.mysql
Class MySQLDefaultJDBCDriverDescriptor

java.lang.Object
  extended by com.googlecode.jdbw.server.mysql.MySQLDefaultJDBCDriverDescriptor
All Implemented Interfaces:
JDBCDriverDescriptor
Direct Known Subclasses:
MySQLCommonJDBCDriverDescriptor

public class MySQLDefaultJDBCDriverDescriptor
extends Object
implements JDBCDriverDescriptor

This driver descriptor is designed to be used with the official MySQL JDBC driver.

Author:
Martin Berglund

Constructor Summary
MySQLDefaultJDBCDriverDescriptor()
           
 
Method Summary
 String formatJDBCUrl(String host, int port, String defaultCatalog)
          Given a host, port and default catalog, return a JDBC URL formatted to be used by this driver
 String getDriverClassName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLDefaultJDBCDriverDescriptor

public MySQLDefaultJDBCDriverDescriptor()
Method Detail

getDriverClassName

public String getDriverClassName()
Specified by:
getDriverClassName in interface JDBCDriverDescriptor
Returns:
The full path of the JDBC driver class to be loaded

formatJDBCUrl

public String formatJDBCUrl(String host,
                            int port,
                            String defaultCatalog)
Description copied from interface: JDBCDriverDescriptor
Given a host, port and default catalog, return a JDBC URL formatted to be used by this driver

Specified by:
formatJDBCUrl in interface JDBCDriverDescriptor
Parameters:
host - Hostname of the database server
port - Port number to connect on
defaultCatalog - Default catalog to use
Returns:
JDBC url formatted for this driver


Copyright © 2012. All Rights Reserved.