© 2005 BEA Systems, Inc.

com.beasys.commerce.util
Class ResultSetIterator

java.lang.Object
  extended bycom.beasys.commerce.util.ResultSetIterator
All Implemented Interfaces:
Iterator

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


Field Summary
static int BELONGING_TYPE
           
static int EJB_PK_TYPE
           
 
Constructor Summary
ResultSetIterator(String resultClassName, int resultClassType, Vector fieldMap, PreparedStatement preparedStatement, ResultSet resultSet)
           
 
Method Summary
 boolean hasNext()
           
 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
 

Field Detail

BELONGING_TYPE

public static final int BELONGING_TYPE
See Also:
Constant Field Values

EJB_PK_TYPE

public static final int EJB_PK_TYPE
See Also:
Constant Field Values
Constructor Detail

ResultSetIterator

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

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

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

Specified by:
next in interface Iterator

remove

public void remove()
This operation is unsupported

Specified by:
remove in interface Iterator

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved