Interface ScriptExecutorTool.Command
-
- All Known Implementing Classes:
ScriptExecutorTool.StatementCommand
- Enclosing class:
- ScriptExecutorTool
public static interface ScriptExecutorTool.Command
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidexecute(Connection connection, Map<String,Object> data)Executed for each row of datadefault voidfinalize(Connection connection)Called after last executiondefault voidinitialize(Connection connection)Called before first execution
-
-
-
Method Detail
-
initialize
default void initialize(Connection connection) throws SQLException
Called before first execution- Parameters:
connection-- Throws:
SQLException
-
finalize
default void finalize(Connection connection) throws SQLException
Called after last execution- Parameters:
connection-- Throws:
SQLException
-
execute
void execute(Connection connection, Map<String,Object> data) throws SQLException
Executed for each row of data- Parameters:
connection-data-- Throws:
SQLException
-
-