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
  • 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 class DataSourceDriver
      Parameters:
      properties - If not null, 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 class DataSourceDriver
      Returns:
    • clone

      public java.lang.Object clone()
      Overrides:
      clone in class DataSourceDriver
    • getDataSourceDialogPanel

      public DataSourceDialogPanel getDataSourceDialogPanel()
      Description copied from class: DataSourceDriver
      Returns a DataSourceDialogPanel to specify this data source.
      Overrides:
      getDataSourceDialogPanel in class DataSourceDriver
      Returns: