com.mortbay.JDBC
Class RowEnumeration

java.lang.Object
  |
  +--com.mortbay.JDBC.RowEnumeration

public class RowEnumeration
extends java.lang.Object
implements java.util.Enumeration

Wraps a ResultSet into enumerated Row instances

Notes

Rows are only extracted from ResultSet as they are requested.

Usage

As per Enumeration

Version:
$Id: RowEnumeration.java,v 2.1 1999/09/22 15:08:40 gregw Exp $
Author:
Greg Wilkins

Constructor Summary
RowEnumeration(Table table, java.sql.ResultSet rs)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 Row nextRow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowEnumeration

public RowEnumeration(Table table,
                      java.sql.ResultSet rs)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
                             throws java.util.NoSuchElementException
Specified by:
nextElement in interface java.util.Enumeration

nextRow

public Row nextRow()
            throws java.util.NoSuchElementException