Class DataSourceCommands

java.lang.Object
mgui.command.CommandInterpreter
mgui.command.CommandInstance
mgui.datasources.util.DataSourceCommands

public class DataSourceCommands
extends CommandInstance
Utility for defining a JDBC driver with login and encrypted password.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • DataSourceCommands

      public DataSourceCommands()
  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.lang.Exception
      Parameters:
      args -
      Throws:
      java.lang.Exception
    • run_command

      protected boolean run_command​(java.lang.String command)
      Description copied from class: CommandInstance
      Runs a single command with the current parameters.
      Specified by:
      run_command in class CommandInstance
    • define_jdbc_driver

      public boolean define_jdbc_driver()
      Defines a JDBC driver file (*.driver) with login and encrypted password. If the file exists, it will be altered; otherwise it will be created.

      Parameters [required]

      • file_name The file name of the driver; defines the file name as [file_name].driver
      • login Login for the driver.
      • password Plain text password for the driver.

      Parameters [optional]

      • driver_name The name of the driver; defaults to the file name for new files; otherwise keeps the old name.
      • driver_url The JDBC-specific url specifying the location of the data source
      • driver_class The full path to the mgui driver class. Defaults to 'mgui.datasources.DataSourceDriver' for new files; otherwise keeps the old class.