Package mgui.datasources.mysql
Class MySQLDriver
java.lang.Object
mgui.datasources.DataSourceDriver
mgui.datasources.mysql.MySQLDriver
- All Implemented Interfaces:
java.lang.Cloneable
,AttributeObject
,PersistentObject
,NamedObject
public class MySQLDriver extends DataSourceDriver
Specifies the driver for MySQL connectivity.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MySQLDriver()
MySQLDriver(java.lang.String url, java.lang.String user, java.lang.String password)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
java.util.ArrayList<java.lang.String>
getDatabases(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> properties)
If implemented, returns a map of properties the databases currently accessible through this driver.DataSourceDialogPanel
getDataSourceDialogPanel()
Returns aDataSourceDialogPanel
to specify this data source.java.lang.String
getDataSourceFromUrl(java.lang.String url)
Extracts a data source name from a driver-specific URLMethods inherited from class mgui.datasources.DataSourceDriver
dropDatabase, getAttribute, getAttributes, getAttributeValue, getClassName, getConnection, getCreateDatabaseSQL, getDatabases, getFileLoader, getFileWriter, getFriendlyName, getLoaderOptions, getLogin, getName, getPassword, getSQLName, getSQLQuote, getSQLType, getSSL, getUrl, getUrlFromName, getUrlPrefix, getUrlReference, getWriterOptions, init, setAttribute, setAttributes, setClassName, setFileLoader, setFileWriter, setLoaderOptions, setLogin, setName, setPassword, setUrl, setUrlReference, setWriterOptions
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MySQLDriver
public MySQLDriver() -
MySQLDriver
public MySQLDriver(java.lang.String url, java.lang.String user, java.lang.String password)
-
-
Method Details
-
getDatabases
public java.util.ArrayList<java.lang.String> getDatabases(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> properties)Description copied from class:DataSourceDriver
If implemented, returns a map of properties the databases currently accessible through this driver. Otherwise, returns an empty map.- Overrides:
getDatabases
in classDataSourceDriver
- Parameters:
properties
- If notnull
, fills this map with database properties- Returns:
-
getDataSourceFromUrl
public java.lang.String getDataSourceFromUrl(java.lang.String url)Description copied from class:DataSourceDriver
Extracts a data source name from a driver-specific URL- Overrides:
getDataSourceFromUrl
in classDataSourceDriver
- Returns:
-
clone
public java.lang.Object clone()- Overrides:
clone
in classDataSourceDriver
-
getDataSourceDialogPanel
Description copied from class:DataSourceDriver
Returns aDataSourceDialogPanel
to specify this data source.- Overrides:
getDataSourceDialogPanel
in classDataSourceDriver
- Returns:
-