com.googlecode.jdbw.server.mysql
Class MySQLDefaultJDBCDriverDescriptor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLDefaultJDBCDriverDescriptor
public MySQLDefaultJDBCDriverDescriptor()
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 serverport - Port number to connect ondefaultCatalog - Default catalog to use
- Returns:
- JDBC url formatted for this driver
Copyright © 2012. All Rights Reserved.