java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java
branchv_0
changeset 146 4f4f515df807
parent 144 d273d7c6dc0c
child 155 eb3676c6929b
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java	Wed Jan 08 14:50:26 2014 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/batch/Batch.java	Wed Jan 08 19:18:52 2014 +0100
     1.3 @@ -18,28 +18,14 @@
     1.4  package info.globalcode.sql.dk.batch;
     1.5  
     1.6  import info.globalcode.sql.dk.SQLCommand;
     1.7 -import java.util.Iterator;
     1.8  
     1.9  /**
    1.10   *
    1.11   * @author Ing. František Kučera (frantovo.cz)
    1.12   */
    1.13 -public class Batch implements Iterator<SQLCommand> {
    1.14 +public interface Batch {
    1.15  
    1.16 -	@Override
    1.17 -	public boolean hasNext() {
    1.18 -		/** TODO: implement iterator */
    1.19 -		throw new UnsupportedOperationException("Not supported yet.");
    1.20 -	}
    1.21 +	public boolean hasNext() throws BatchException;
    1.22  
    1.23 -	@Override
    1.24 -	public SQLCommand next() {
    1.25 -		/** TODO: implement iterator */
    1.26 -		throw new UnsupportedOperationException("Not supported yet.");
    1.27 -	}
    1.28 -
    1.29 -	@Override
    1.30 -	public void remove() {
    1.31 -		throw new UnsupportedOperationException("remove() is not supported");
    1.32 -	}
    1.33 +	public SQLCommand next() throws BatchException;
    1.34  }