diff -r 5f90decd3b59 -r 4f4f515df807 java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java --- 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 { +public interface Batch { - @Override - public boolean hasNext() { - /** TODO: implement iterator */ - throw new UnsupportedOperationException("Not supported yet."); - } + public boolean hasNext() throws BatchException; - @Override - public SQLCommand next() { - /** TODO: implement iterator */ - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void remove() { - throw new UnsupportedOperationException("remove() is not supported"); - } + public SQLCommand next() throws BatchException; }