1 package net.sf.jasperreports.mysql;2 3 import java.util.TimerTask ;4 5 6 /**7 * extends TimerTask to add Database fields parent and destination.8 */9 public abstract class Task extends TimerTask 10 {11 12 Database parent;13 Database destination;14 15 /**16 * Constructs a new Task object with Database objects parent and destination.17 *18 * @param parent - source Database to use for this task.19 * @param destination - destination Database to use for this task.20 */21 public Task(Database parent, Database destination)22 {23 this.parent = parent;24 this.destination = destination;25 }26 }27