-
- 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=
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
DEFAULT_CITATION
public final static String
POSITION_LIST_NONE
public final static String
TAXA_LIST_NONE
-
Constructor Summary
Constructors Constructor Description GetDBConnectionPlugin()
GetDBConnectionPlugin(Frame parentFrame)
GetDBConnectionPlugin(Frame parentFrame, boolean isInteractive)
-
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
-
-
Method Detail
-
processData
DataSet processData(DataSet input)
-
getButtonName
String getButtonName()
-
getToolTipText
String getToolTipText()
-
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
-
-
-
-