Commit the changes using DbControl.commit()
.
Note 1! If the above procedure includes waiting for user input (which it normally does)
you should also use DbControl.disconnect()
and DbControl.reconnect()
to conserve database resources. You must not close or commit the DbControl
until the configuration is completed.
Note 2! If the returned status of a plugin is Response.Status.DONE
after
an invokation, the Plugin.done()
method is called to let the plugin
clean up resources. If a client application wants to abort earlier it should
use the PluginRequest.done()
method in this class.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Methods inherited from class net.sf.basedb.core.PluginRequest |
done, getCommand, getCurrentConfigurationParameterValues, getCurrentJobParameterValues, getCurrentParameterValue, getCurrentParameterValues, getJob, getPlugin, getSessionControl, registerParameters, saveParameters, setNextCommand, setParameterValue, setParameterValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private GuiContext context
progress
private Job.ProgressReporterImpl progress
allowImmediateExecution
private boolean allowImmediateExecution
dryRun
private boolean dryRun
PluginConfigurationRequest
PluginConfigurationRequest(SessionControl sc,
InteractivePlugin plugin,
String command,
PluginConfiguration pluginConfiguration,
ParameterValuesImpl configurationParameters,
Job job,
ParameterValuesImpl jobParameters,
GuiContext context,
PluginDefinition pluginDefinition,
boolean allowImmediateExecution)
invoke
public PluginResponse invoke()
- Description copied from class:
PluginRequest
- Invoke the plugin and let it do it's work. Note that
this method doesn't throw any exceptions. If an exception
occurs during the execution of a plugin, the response
status will be set to
Response.Status.ERROR
and
the error messages will be available in the
PluginResponse.getMessage()
and
PluginResponse.getErrorList()
methods.
- Specified by:
invoke
in class PluginRequest<InteractivePlugin>
- Returns:
- A
PluginResponse
object
getRequestInformation
public RequestInformation getRequestInformation()
throws BaseException
- Get the request information object containing
information about the parameters needed for the plugin.
- Returns:
- A
RequestInformation
object
- Throws:
BaseException
- If there is an error
getGuiContext
public GuiContext getGuiContext()
- Get the context of the client application when this configuration request
was created.
setProgressReporter
void setProgressReporter(Job.ProgressReporterImpl progress)