Class DatabaseTasks.ProcessTask

java.lang.Object
rife.database.DbRowProcessor
rife.scheduler.taskmanagers.DatabaseTasks.ProcessTask
All Implemented Interfaces:
Cloneable
Enclosing class:
DatabaseTasks

protected class DatabaseTasks.ProcessTask extends DbRowProcessor
  • Field Details

  • Constructor Details

    • ProcessTask

      public ProcessTask()
  • Method Details

    • setCollection

      public void setCollection(Collection<Task> collection)
    • processRow

      public boolean processRow(ResultSet resultSet) throws SQLException
      Description copied from class: DbRowProcessor
      This method has to be implemented by each class that extends the DbRowProcessor class. It has to contain all the logic that should be executed for each row of a result set.
      Specified by:
      processRow in class DbRowProcessor
      Parameters:
      resultSet - the ResultSet instance that was provided to the DbQueryManager's fetch method.
      Returns:
      true if the processing is considered successful; or

      false if the processing is considered failed.

      Note: this return value is purely indicative and unless the user does checks with the wasSuccessful() method, it will have no influence on anything.

      Throws:
      SQLException - when a database error occurs, it's thus not necessary to catch all the possible SQLExceptions inside this method. They'll be caught higher up and be transformed in DatabaseExceptions.
      See Also: