/**
 * Contains classes for server that execute database queries
 * for multiple clients.
 */
package goodsbase.qserver;

import java.sql.ResultSet;

/**
 * Represents a task that contains execution of sql statements.
 * @author Daria
 */
public interface DbTask {
	
	/**
	 * Executes task
	 */
	void execute();
	
	/**
	 * @return ResultSet that has been created during execute() 
	 * or null if DbTask has not been executed yet or if execute()
	 * has not created any ResultSet
	 */
	ResultSet getResult();
}

@@ -115,16 +115,44 @@
 erver;%0A%0A
+import java.sql.Connection;%0A
 import j
@@ -170,16 +170,16 @@
 ultSet;%0A
-
 %0A/**%0A * 
@@ -330,16 +330,28 @@
 execute(
+Connection c
 );%0A%09%0A%09/*
@@ -517,16 +517,16 @@
 et%0A%09 */%0A
-
 %09ResultS
@@ -541,10 +541,92 @@
 sult();%0A
+%09%0A%09/**%0A%09 * @return true if task execution is complete%0A%09 */%0A%09boolean isComplete();%0A
 %7D%0A

add isComplete() method to DbTask