KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > tools > SimpleRowSource


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.tools;
6
7 import java.sql.SQLException JavaDoc;
8
9 /**
10  * This interface is for classes that create rows on demand.
11  * It is used together with SimpleResultSet to create a dynamic result set.
12  */

13 public interface SimpleRowSource {
14     
15     /**
16      * Get the next row. Must return null if no more rows are available.
17      *
18      * @return the row or null
19      * @throws SQLException
20      */

21     Object JavaDoc[] readRow() throws SQLException JavaDoc;
22     
23     /**
24      * Close the row source.
25      */

26     void close();
27
28     /**
29      * Reset the position (before the first row).
30      *
31      * @throws SQLException if this operation is not supported
32      */

33     void reset() throws SQLException JavaDoc;
34 }
35
Popular Tags