jodd.bean.loader
Class ResultSetBeanLoader

java.lang.Object
  extended by jodd.bean.loader.ResultSetBeanLoader
All Implemented Interfaces:
BeanLoader

public class ResultSetBeanLoader
extends java.lang.Object
implements BeanLoader

Populate java bean from ResultSet objects.


Constructor Summary
ResultSetBeanLoader()
           
 
Method Summary
 void load(java.lang.Object bean, java.lang.Object rs)
          Loads values from given source into the destination bean.
static void loadBean(java.lang.Object bean, java.lang.Object rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetBeanLoader

public ResultSetBeanLoader()
Method Detail

loadBean

public static void loadBean(java.lang.Object bean,
                            java.lang.Object rs)

load

public void load(java.lang.Object bean,
                 java.lang.Object rs)
Description copied from interface: BeanLoader
Loads values from given source into the destination bean. All properties from source object will be iterated to be set into the destination.

Specified by:
load in interface BeanLoader
Parameters:
bean - instance that will be populated
rs - object to populate from


Copyright ©2008 Jodd Team