2.17.2: 2011-06-17

net.sf.basedb.core.query
Interface SqlResultIterator

All Superinterfaces:
Iterator<SqlResult>, QueryResult, ResultIterator<SqlResult>
All Known Implementing Classes:
DynamicResultIterator, PlotServlet.CFResultIterator

public interface SqlResultIterator
extends ResultIterator<SqlResult>

Return the result of a SqlQuery as an iterator.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Method Summary
 int getIndex(String name)
          Get the index number of a selected column.
 
Methods inherited from interface net.sf.basedb.core.query.ResultIterator
close, isClosed
 
Methods inherited from interface net.sf.basedb.core.query.QueryResult
getTotalCount
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

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 the SqlResult.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

2.17.2: 2011-06-17