Interface TaskExecutor


public interface TaskExecutor
Interface for executing SQL statements for tasks
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Execute a SQL statement
    default List<ResultSet>
    Execute a query and return its result sets — used to evaluate a task's WHEN condition.
  • Method Details

    • execute

      int execute(String sql)
      Execute a SQL statement
      Parameters:
      sql - The SQL statement to execute
      Returns:
      Number of rows affected
    • executeQuery

      default List<ResultSet> executeQuery(String sql)
      Execute a query and return its result sets — used to evaluate a task's WHEN condition. An implementation MUST override this; the default throws rather than returning an empty list, because an empty result would make a WHEN condition silently evaluate as "run the task".