com.googlecode.jdbw.server.mysql
Class MySQLCommonJDBCDriverDescriptor
java.lang.Object
com.googlecode.jdbw.server.mysql.MySQLDefaultJDBCDriverDescriptor
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:
useUnicode=yes
characterEncoding=UTF-8
rewriteBatchedStatements=true
continueBatchOnError=false
allowMultiQueries=true
useCompression=true
zeroDateTimeBehavior=convertToNull
- Author:
- Martin Berglund
- See Also:
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLCommonJDBCDriverDescriptor
public MySQLCommonJDBCDriverDescriptor()
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 serverport - Port number to connect ondefaultCatalog - Default catalog to use
- Returns:
- JDBC url formatted for this driver
Copyright © 2012. All Rights Reserved.