Package rife.scheduler.taskmanagers
Class DatabaseTasks.ProcessTask
java.lang.Object
rife.database.DbRowProcessor
rife.scheduler.taskmanagers.DatabaseTasks.ProcessTask
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- DatabaseTasks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocessRow(ResultSet resultSet) This method has to be implemented by each class that extends theDbRowProcessorclass.voidsetCollection(Collection<Task> collection) Methods inherited from class rife.database.DbRowProcessor
clone, wasSuccessful
-
Field Details
-
collection_
-
task_
-
-
Constructor Details
-
ProcessTask
public ProcessTask()
-
-
Method Details
-
setCollection
-
processRow
Description copied from class:DbRowProcessorThis method has to be implemented by each class that extends theDbRowProcessorclass. It has to contain all the logic that should be executed for each row of a result set.- Specified by:
processRowin classDbRowProcessor- Parameters:
resultSet- theResultSetinstance that was provided to theDbQueryManager'sfetchmethod.- Returns:
trueif the processing is considered successful; orfalseif 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 possibleSQLExceptions inside this method. They'll be caught higher up and be transformed inDatabaseExceptions.- See Also:
-