org.xerial.db.sql.mysql
Class MySQLAccess

java.lang.Object
  extended by org.xerial.db.sql.DatabaseAccessBase
      extended by org.xerial.db.sql.mysql.MySQLAccess
All Implemented Interfaces:
DatabaseAccess

public class MySQLAccess
extends DatabaseAccessBase

Adapter for MySQL database. Since MySQL JDBC driver is licensed under GPL, we cannot include its jar archive in this xerial-storage package. If you want to use this MySQL support, download the MySQL Connector/J from http://www.mysql.com/products/connector/j/, then add the JAR file to your class path.

Author:
leo

Field Summary
static String ADDRESS_PREFIX
           
static String DRIVER_NAME
           
 
Constructor Summary
MySQLAccess(String address, String user, String path)
           
MySQLAccess(String address, String user, String path, int numConnections)
           
 
Method Summary
 
Methods inherited from class org.xerial.db.sql.DatabaseAccessBase
accumulate, createStatement, createValueTupleFromBean, dispose, getConnectionPool, getRelation, getTableNameList, insert, query, query, query, queryWithHandler, setAutoCommit, setQueryTimeout, singleColumnQuery, toJSON, update, update, updateWithPreparedStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRIVER_NAME

public static final String DRIVER_NAME
See Also:
Constant Field Values

ADDRESS_PREFIX

public static final String ADDRESS_PREFIX
See Also:
Constant Field Values
Constructor Detail

MySQLAccess

public MySQLAccess(String address,
                   String user,
                   String path)
            throws DBException
Throws:
DBException

MySQLAccess

public MySQLAccess(String address,
                   String user,
                   String path,
                   int numConnections)
            throws DBException
Throws:
DBException


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.