Package org.h2.tools
Interface SimpleRowSource
-
- All Known Implementing Classes:
Csv
public interface SimpleRowSourceThis interface is for classes that create rows on demand. It is used together with SimpleResultSet to create a dynamic result set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the row source.java.lang.Object[]readRow()Get the next row.voidreset()Reset the position (before the first row).
-
-
-
Method Detail
-
readRow
java.lang.Object[] readRow() throws java.sql.SQLExceptionGet the next row. Must return null if no more rows are available.- Returns:
- the row or null
- Throws:
java.sql.SQLException- on failure
-
close
void close()
Close the row source.
-
reset
void reset() throws java.sql.SQLExceptionReset the position (before the first row).- Throws:
java.sql.SQLException- if this operation is not supported
-
-