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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
processRow
(ResultSet resultSet) This method has to be implemented by each class that extends theDbRowProcessor
class.void
setCollection
(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:DbRowProcessor
This method has to be implemented by each class that extends theDbRowProcessor
class. It has to contain all the logic that should be executed for each row of a result set.- Specified by:
processRow
in classDbRowProcessor
- Parameters:
resultSet
- theResultSet
instance that was provided to theDbQueryManager
'sfetch
method.- Returns:
true
if the processing is considered successful; orfalse
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 possibleSQLException
s inside this method. They'll be caught higher up and be transformed inDatabaseException
s.- See Also:
-