com.beasys.commerce.util
Class  ResultSetIterator
java.lang.Object
  |
  +--com.beasys.commerce.util.ResultSetIterator
- All Implemented Interfaces: 
 - java.util.Iterator
 
- public class ResultSetIterator
- extends java.lang.Object
- implements java.util.Iterator
   
Implements the java.util.Iterator interface for a JDBC ResultSet.
 
 A more interesting (and useful) interface would implement the java.util.ListIterator interface
 
| 
Constructor Summary | 
ResultSetIterator(java.lang.String resultClassName,
                  int resultClassType,
                  java.util.Vector fieldMap,
                  java.sql.PreparedStatement preparedStatement,
                  java.sql.ResultSet resultSet)
 
            | 
 
| 
Method Summary | 
 boolean | 
hasNext()
 
            | 
 java.lang.Object | 
next()
 
          Returns the next element in the interation. | 
 void | 
remove()
 
          This operation is unsupported | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BELONGING_TYPE
public static final int BELONGING_TYPE
EJB_PK_TYPE
public static final int EJB_PK_TYPE
ResultSetIterator
public ResultSetIterator(java.lang.String resultClassName,
                         int resultClassType,
                         java.util.Vector fieldMap,
                         java.sql.PreparedStatement preparedStatement,
                         java.sql.ResultSet resultSet)
hasNext
public boolean hasNext()
- Specified by: 
 hasNext in interface java.util.Iterator
 
next
public java.lang.Object next()
- Returns the next element in the interation.
- Specified by: 
 next in interface java.util.Iterator
 
 
remove
public void remove()
- This operation is unsupported
- Specified by: 
 remove in interface java.util.Iterator
 
 
Copyright © 2001 BEA Systems, Inc. All Rights Reserved