com.googlecode.jdbw.server.mysql
Class MySQLCommonJDBCDriverDescriptor

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

public class MySQLCommonJDBCDriverDescriptor
extends MySQLDefaultJDBCDriverDescriptor

This driver descriptor overrides the default MySQL JDBC driver descriptor and adds certain common parameters to the URL. These are:

Author:
Martin Berglund
See Also:
MySQLDefaultJDBCDriverDescriptor

Constructor Summary
MySQLCommonJDBCDriverDescriptor()
           
 
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
 
Methods inherited from class com.googlecode.jdbw.server.mysql.MySQLDefaultJDBCDriverDescriptor
getDriverClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLCommonJDBCDriverDescriptor

public MySQLCommonJDBCDriverDescriptor()
Method Detail

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
Overrides:
formatJDBCUrl in class MySQLDefaultJDBCDriverDescriptor
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.