File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\tools\SimpleRowSource.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.tools;
8
9 import java.sql.SQLException;
10
11 /**
12 * This interface is for classes that create rows on demand.
13 * It is used together with SimpleResultSet to create a dynamic result set.
14 */
15 public interface SimpleRowSource {
16
17 /**
18 * Get the next row. Must return null if no more rows are available.
19 *
20 * @return the row or null
21 * @throws SQLException
22 */
23 Object[] readRow() throws SQLException;
24
25 /**
26 * Close the row source.
27 */
28 void close();
29
30 /**
31 * Reset the position (before the first row).
32 *
33 * @throws SQLException if this operation is not supported
34 */
35 void reset() throws SQLException;
36 }
37