public interface SingleOperationTask
Attention! If using a logger - be careful when choosing which information to log. Sensitive information should never be logged!
Modifier and Type | Method and Description |
---|---|
default java.lang.Boolean |
cancel()
Method to cancel SingleOperationTask.
|
void |
execute()
Method to execute SingleOperationTask.
|
java.lang.String |
getTaskName()
Get the task name of this SingleOperationTask.
|
void |
setup(ComponentService serviceProvider)
Retrieve and set up any required information provided by the service provider that may be
required by this class.
|
java.lang.String getTaskName()
Get the task name of this SingleOperationTask. This name must be unique across all SingleOperationTask delivered in a single plugin.
void setup(@NotNull ComponentService serviceProvider)
Retrieve and set up any required information provided by the service provider that may be required by this class.
Attention! The service provider contains access to the target java.sql.Connection object Sensitive information related to a connection, such as host and credentials should never be logged!
serviceProvider
- See
DriverComponentService
for all available
accessors.void execute() throws java.io.IOException, java.sql.SQLException, SingleOperationTaskException
Method to execute SingleOperationTask.
java.io.IOException
- If an error occurs while performing IO operations.SingleOperationTaskException
- If a generic error occurs related to
SingleOperationTask.java.sql.SQLException
- If an error occurs while performing SQL operations.default java.lang.Boolean cancel() throws SingleOperationTaskException
Method to cancel SingleOperationTask.
SingleOperationTaskException
- If a generic error occurs related to
SingleOperationTask.