01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.result;
07:
08: import java.sql.SQLException;
09:
10: import org.h2.util.ObjectArray;
11: import org.h2.value.Value;
12:
13: /**
14: * This interface is used to extend the LocalResult class, if data does not fit
15: * in memory.
16: */
17: public interface ResultExternal {
18:
19: void reset() throws SQLException;
20:
21: Value[] next() throws SQLException;
22:
23: void addRows(ObjectArray rows) throws SQLException;
24:
25: void done() throws SQLException;
26:
27: void close();
28:
29: int removeRow(Value[] values) throws SQLException;
30:
31: boolean contains(Value[] values) throws SQLException;
32:
33: int addRow(Value[] values) throws SQLException;
34:
35: }
|