butler.sql.record
Class DefaultRowProcessor

java.lang.Object
  extended by butler.sql.record.DefaultRowProcessor
All Implemented Interfaces:
RowProcessor

public class DefaultRowProcessor
extends java.lang.Object
implements RowProcessor

Converts one row of the ResultSet to a Record object. If the query joins multiple tables more than one row of the ResultSet may be used. If there are one-to-many joins the related records will be added to the main record. This will also work if there are recursive joins.

Author:
Fredrik Bertilsson

Constructor Summary
DefaultRowProcessor(Query query)
           
 
Method Summary
 java.lang.Object process(java.sql.ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRowProcessor

public DefaultRowProcessor(Query query)
Method Detail

process

public java.lang.Object process(java.sql.ResultSet rs)
                         throws java.lang.Exception
Specified by:
process in interface RowProcessor
Throws:
java.lang.Exception