net.sf.voruta
Class BeanCollectionHandler

java.lang.Object
  |
  +--net.sf.voruta.BeanCollectionHandler
All Implemented Interfaces:
ResultSetHandler

public class BeanCollectionHandler
extends java.lang.Object
implements ResultSetHandler

Transforms result set to collection of beans

Author:
baliuka

Constructor Summary
BeanCollectionHandler(java.lang.Class type)
          Creates a new instance of BeanCollectionHandler
 
Method Summary
 java.lang.Object handle(DbResultSet rs, java.lang.Class returnType, java.lang.Object[] params)
          Callback method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanCollectionHandler

public BeanCollectionHandler(java.lang.Class type)
Creates a new instance of BeanCollectionHandler
Parameters:
type - Bean type
Method Detail

handle

public java.lang.Object handle(DbResultSet rs,
                               java.lang.Class returnType,
                               java.lang.Object[] params)
                        throws java.lang.Exception
Description copied from interface: ResultSetHandler
Callback method
Specified by:
handle in interface ResultSetHandler
Following copied from interface: net.sf.voruta.ResultSetHandler
Parameters:
rs - Result set returned by SQL query
returnType - method result type
params - method parameters
Returns:
transformed value, can be null
Throws:
SQLException - on error in query processing


Copyright © 2003-2004 voruta. All Rights Reserved.