Class DatabaseTaskOptions.ProcessTaskOption
java.lang.Object
rife.database.DbRowProcessor
rife.scheduler.taskoptionmanagers.DatabaseTaskOptions.ProcessTaskOption
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- DatabaseTaskOptions
-
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<TaskOption> collection) Methods inherited from class rife.database.DbRowProcessor
clone, wasSuccessful
-
Field Details
-
collection_
-
taskOption_
-
-
Constructor Details
-
ProcessTaskOption
public ProcessTaskOption()
-
-
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:
-
getTaskOption
-