Package dev.frostlake.task
Interface TaskExecutor
public interface TaskExecutor
Interface for executing SQL statements for tasks
-
Method Summary
-
Method Details
-
execute
Execute a SQL statement- Parameters:
sql- The SQL statement to execute- Returns:
- Number of rows affected
-
executeQuery
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".
-