net.sqlind
Class SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior<T>

java.lang.Object
  extended by net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanWiringBehavior<T>
      extended by net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior<T>
          extended by net.sqlind.SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior<T>
All Implemented Interfaces:
SQLQueryMapper.QueryBehavior
Enclosing class:
SQLQueryMapper.SQLQueryHandler

public class SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior<T>
extends SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior<T>

Generic query result bean list wiring implementation. Bean list size will match the number of records retrieved by query.


Field Summary
 
Fields inherited from class net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior
list
 
Fields inherited from class net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanWiringBehavior
clazz, objBean
 
Constructor Summary
SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior(Class<T> clazz, List<T> list)
           
 
Method Summary
 void doForEach(T bean)
           
 void doForEachRecord(T bean)
          Call for each records
 
Methods inherited from class net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior
doForEachRupture, doForEachSubRupture
 
Methods inherited from class net.sqlind.SQLQueryMapper.SQLQueryHandler.BeanWiringBehavior
fetch, getNewBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior

public SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior(Class<T> clazz,
                                                                   List<T> list)
                                                            throws SQLQueryMapper.SQLMapperException
Throws:
SQLQueryMapper.SQLMapperException
Method Detail

doForEach

public void doForEach(T bean)
Overrides:
doForEach in class SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior<T>

doForEachRecord

public void doForEachRecord(T bean)
Description copied from class: SQLQueryMapper.SQLQueryHandler.BeanWiringBehavior
Call for each records

Overrides:
doForEachRecord in class SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior<T>
Parameters:
bean - the first level object


Copyright © 2011. All Rights Reserved.