Package 

Class GetDBConnectionPlugin

  • All Implemented Interfaces:
    java.lang.Runnable , net.maizegenetics.plugindef.Plugin , net.maizegenetics.plugindef.PluginListener , net.maizegenetics.util.ProgressListener

    
    public class GetDBConnectionPlugin
    extends AbstractPlugin
                        

    Plugin takes a configFile with db specifics and a boolean indicating whether a new db shoudl be created. Output is a db COnnection object. INPUT: Config file containing these 5 lines (additional lines are ignored) host=user=

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      DataSet processData(DataSet input)
      static void main(Array<String> args)
      ImageIcon getIcon()
      String getButtonName()
      String getToolTipText()
      String configFile() File containing lines with data for host=, user=, password= and DB=, DBtype= used for db connection
      GetDBConnectionPlugin configFile(String value) Set DB Config Files.
      Boolean createNew() True indicates a new DB of this name should be created, deleting any existing DB of this name.
      GetDBConnectionPlugin createNew(Boolean value) Set Create New DB.
      • Methods inherited from class net.maizegenetics.plugindef.AbstractPlugin

        addListener, cancel, convert, dataSetReturned, getCitation, getInputs, getListeners, getMenu, getPanel, getParameter, getParentFrame, getUsage, getUsageHTML, hasListeners, isInteractive, isPluginParameter, performFunction, pluginDescription, pluginParameters, pluginUserManualURL, progress, receiveInput, reverseTrace, run, setConfigParameters, setParameter, setParameters, setParametersToDefault, setThreaded, trace, usageParameters, wasCancelled
      • Methods inherited from class net.maizegenetics.plugindef.Plugin

        getPluginInstance, isPlugin
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetDBConnectionPlugin

        GetDBConnectionPlugin()
      • GetDBConnectionPlugin

        GetDBConnectionPlugin(Frame parentFrame)
      • GetDBConnectionPlugin

        GetDBConnectionPlugin(Frame parentFrame, boolean isInteractive)
    • Method Detail

      • configFile

         String configFile()

        File containing lines with data for host=, user=, password= and DB=, DBtype= used for db connection

      • configFile

         GetDBConnectionPlugin configFile(String value)

        Set DB Config Files. File containing lines with data for host=, user=, password= and DB=, DBtype= used for db connection

        Parameters:
        value - DB Config Files
      • createNew

         Boolean createNew()

        True indicates a new DB of this name should be created, deleting any existing DB of this name. False means return connection to existing DB or NULL

      • createNew

         GetDBConnectionPlugin createNew(Boolean value)

        Set Create New DB. True indicates a new DB of this name should be created, deleting any existing DB of this name. False means return connection to existing DB or NULL

        Parameters:
        value - Create New DB