author | František Kučera <franta-hg@frantovo.cz> |
Fri, 10 Jan 2014 23:21:28 +0100 | |
branch | v_0 |
changeset 155 | eb3676c6929b |
parent 146 | 4f4f515df807 |
permissions | -rw-r--r-- |
franta-hg@29 | 1 |
/** |
franta-hg@29 | 2 |
* SQL-DK |
franta-hg@29 | 3 |
* Copyright © 2013 František Kučera (frantovo.cz) |
franta-hg@29 | 4 |
* |
franta-hg@29 | 5 |
* This program is free software: you can redistribute it and/or modify |
franta-hg@29 | 6 |
* it under the terms of the GNU General Public License as published by |
franta-hg@29 | 7 |
* the Free Software Foundation, either version 3 of the License, or |
franta-hg@29 | 8 |
* (at your option) any later version. |
franta-hg@29 | 9 |
* |
franta-hg@29 | 10 |
* This program is distributed in the hope that it will be useful, |
franta-hg@29 | 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@29 | 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@29 | 13 |
* GNU General Public License for more details. |
franta-hg@29 | 14 |
* |
franta-hg@29 | 15 |
* You should have received a copy of the GNU General Public License |
franta-hg@29 | 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@29 | 17 |
*/ |
franta-hg@29 | 18 |
package info.globalcode.sql.dk.batch; |
franta-hg@29 | 19 |
|
franta-hg@29 | 20 |
import info.globalcode.sql.dk.SQLCommand; |
franta-hg@29 | 21 |
|
franta-hg@29 | 22 |
/** |
franta-hg@155 | 23 |
* Iterator which reads SQL commands from encoded (serialized) batch. |
franta-hg@29 | 24 |
* |
franta-hg@29 | 25 |
* @author Ing. František Kučera (frantovo.cz) |
franta-hg@29 | 26 |
*/ |
franta-hg@146 | 27 |
public interface Batch { |
franta-hg@29 | 28 |
|
franta-hg@146 | 29 |
public boolean hasNext() throws BatchException; |
franta-hg@29 | 30 |
|
franta-hg@146 | 31 |
public SQLCommand next() throws BatchException; |
franta-hg@29 | 32 |
} |