--- a/java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java Wed Jan 08 14:50:26 2014 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java Wed Jan 08 19:18:52 2014 +0100
@@ -18,28 +18,14 @@
package info.globalcode.sql.dk.batch;
import info.globalcode.sql.dk.SQLCommand;
-import java.util.Iterator;
/**
*
* @author Ing. František Kučera (frantovo.cz)
*/
-public class Batch implements Iterator<SQLCommand> {
-
- @Override
- public boolean hasNext() {
- /** TODO: implement iterator */
- throw new UnsupportedOperationException("Not supported yet.");
- }
+public interface Batch {
- @Override
- public SQLCommand next() {
- /** TODO: implement iterator */
- throw new UnsupportedOperationException("Not supported yet.");
- }
+ public boolean hasNext() throws BatchException;
- @Override
- public void remove() {
- throw new UnsupportedOperationException("remove() is not supported");
- }
+ public SQLCommand next() throws BatchException;
}