util.sql.test
Class UserResultProcessor

java.lang.Object
  |
  +--util.sql.test.UserResultProcessor
All Implemented Interfaces:
ResultProcessor

public class UserResultProcessor
extends java.lang.Object
implements ResultProcessor

Result processor that will form User objects from the given result set.

Since:
3/20/2002
Version:
1.0
Author:
Ryan Daigle

Method Summary
static ResultProcessor getInstance()
          Get an instance of this result processor.
 java.lang.Object[] process(java.sql.ResultSet rs)
          Takes a result set and munges it into whatever type of object or set of objects it should be.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ResultProcessor getInstance()
Get an instance of this result processor.
Returns:
an instance of this result processor

process

public java.lang.Object[] process(java.sql.ResultSet rs)
                           throws java.sql.SQLException
Takes a result set and munges it into whatever type of object or set of objects it should be.
Specified by:
process in interface ResultProcessor
Parameters:
rs - The result set to traverse in forming these objects
Returns:
the object or set of objects that this result set represents
Throws:
java.sql.SQLException - this exception that can result from mishandling of a result set. However, the developer shouldn't have to worry about the overhead of handling these exceptions, so let it bubble up.