Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.db
Class DbRowSetIterator  view DbRowSetIterator download DbRowSetIterator.java

java.lang.Object
  extended byjavatools.db.DbRowSetIterator
All Implemented Interfaces:
DbIterator, java.util.Iterator

public class DbRowSetIterator
extends java.lang.Object
implements DbIterator


Field Summary
private  java.util.Iterator rowIt
           
 
Constructor Summary
DbRowSetIterator(DbRowSet rs)
          Creates a new instance of DbRowSetIterator
 
Method Summary
 boolean hasNext()
          Tests whether there are elements remaining in the collection.
 boolean hasNextRow()
          Are there more rows to iterator through?
 java.lang.Object next()
          Obtain the next element in the collection.
 DbRow nextRow()
          Get the next DbRow in the table.
 void remove()
          Removes the current element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowIt

private java.util.Iterator rowIt
Constructor Detail

DbRowSetIterator

public DbRowSetIterator(DbRowSet rs)
Creates a new instance of DbRowSetIterator

Method Detail

hasNext

public boolean hasNext()
Description copied from interface: java.util.Iterator
Tests whether there are elements remaining in the collection. In other words, calling next() will not throw an exception.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Description copied from interface: java.util.Iterator
Obtain the next element in the collection.

Specified by:
next in interface java.util.Iterator

remove

public void remove()
Description copied from interface: DbIterator
Removes the current element.

Specified by:
remove in interface DbIterator

hasNextRow

public boolean hasNextRow()
                   throws DbException
Are there more rows to iterator through?

Specified by:
hasNextRow in interface DbIterator

nextRow

public DbRow nextRow()
              throws DbException
Get the next DbRow in the table.

Specified by:
nextRow in interface DbIterator