ResultSetIterator Class

com.beasys.commerce.util
ResultSetIterator Class

public class ResultSetIterator

    extends Object
    implements Iterator

Implements the java.util.Iterator interface for a JDBC ResultSet. A more interesting (and useful) interface would implement the java.util.ListIterator interface


Hierarchy
Object
  ResultSetIterator
All Implemented Interfaces

Iterator

Field Summary

public static final int
BELONGING_TYPE
int
public static final int
EJB_PK_TYPE
int
 

Constructor Summary

ResultSetIterator(String resultClassName, int resultClassType, Vector fieldMap, PreparedStatement preparedStatement, ResultSet resultSet)

 

Method Summary

public boolean
hasNext()
public Object
next()
Returns the next element in the interation.
public void
remove()
This operation is unsupported
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface java.util.Iterator
hasNext, next, remove
 

Field Detail

BELONGING_TYPE

public static final int BELONGING_TYPE


EJB_PK_TYPE

public static final int EJB_PK_TYPE

 

Constructor Detail

ResultSetIterator

public ResultSetIterator(String resultClassName, 
                         int resultClassType, 
                         Vector fieldMap, 
                         PreparedStatement preparedStatement, 
                         ResultSet resultSet)
 

Method Detail

hasNext() Method

public boolean hasNext()

next() Method

public Object next()
Returns the next element in the interation.


remove() Method

public void remove()
This operation is unsupported