com.uwyn.rife.scheduler.taskoptionmanagers
Class DatabaseTaskoptions.ProcessTaskoption

java.lang.Object
  extended by com.uwyn.rife.database.DbRowProcessor
      extended by com.uwyn.rife.scheduler.taskoptionmanagers.DatabaseTaskoptions.ProcessTaskoption
All Implemented Interfaces:
Cloneable
Enclosing class:
DatabaseTaskoptions

protected class DatabaseTaskoptions.ProcessTaskoption
extends DbRowProcessor


Field Summary
protected  Collection<Taskoption> mCollection
           
protected  Taskoption mTaskoption
           
 
Constructor Summary
DatabaseTaskoptions.ProcessTaskoption()
           
 
Method Summary
 Taskoption getTaskoption()
           
 boolean processRow(ResultSet resultSet)
          This method has to be implemented by each class that extends the DbRowProcessor class.
 void setCollection(Collection<Taskoption> collection)
           
 
Methods inherited from class com.uwyn.rife.database.DbRowProcessor
clone, wasSuccessful
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mCollection

protected Collection<Taskoption> mCollection

mTaskoption

protected Taskoption mTaskoption
Constructor Detail

DatabaseTaskoptions.ProcessTaskoption

public DatabaseTaskoptions.ProcessTaskoption()
Method Detail

setCollection

public void setCollection(Collection<Taskoption> 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 resultset.

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:
DbQueryManager.fetch(ResultSet, DbRowProcessor), DbRowProcessor.wasSuccessful()

getTaskoption

public Taskoption getTaskoption()


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.