Package net.sf.basedb.core.query
Interface SqlResultIterator
-
- All Superinterfaces:
AutoCloseable
,Iterator<SqlResult>
,QueryResult
,ResultIterator<SqlResult>
- All Known Implementing Classes:
DynamicResultIterator
,PlotServlet.CFResultIterator
public interface SqlResultIterator extends ResultIterator<SqlResult>
Return the result of aSqlQuery
as an iterator.- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIndex(String name)
Get the index number of a selected column.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methods inherited from interface net.sf.basedb.core.query.QueryResult
getTotalCount
-
Methods inherited from interface net.sf.basedb.core.query.ResultIterator
close, isClosed
-
-
-
-
Method Detail
-
getIndex
int getIndex(String name) throws SQLException
Get the index number of a selected column. Use this method to find the index of a column and then use theSqlResult.getXxx(index)
methods to get the value of that column.- Parameters:
name
- The name of a selected column- Returns:
- The index number
- Throws:
SQLException
- If there is an error
-
-