se.unlogic.standardutils.populators.annotated
Class AnnotatedResultSetPopulator<T>

java.lang.Object
  extended by se.unlogic.standardutils.populators.annotated.AnnotatedResultSetPopulator<T>
All Implemented Interfaces:
BeanResultSetPopulator<T>

public class AnnotatedResultSetPopulator<T>
extends Object
implements BeanResultSetPopulator<T>


Field Summary
protected  Class<T> beanClass
           
protected  HashMap<Field,ResultSetField> resultSetFieldMap
           
 
Constructor Summary
AnnotatedResultSetPopulator(Class<T> beanClass)
           
AnnotatedResultSetPopulator(Class<T> beanClass, BeanStringPopulator<?>... populators)
           
AnnotatedResultSetPopulator(Class<T> beanClass, List<? extends BeanStringPopulator<?>> populators)
           
 
Method Summary
 ResultSetField getResultSetField(Field field)
           
 T populate(ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanClass

protected Class<T> beanClass

resultSetFieldMap

protected HashMap<Field,ResultSetField> resultSetFieldMap
Constructor Detail

AnnotatedResultSetPopulator

public AnnotatedResultSetPopulator(Class<T> beanClass)
                            throws UnsupportedFieldTypeException
Throws:
UnsupportedFieldTypeException

AnnotatedResultSetPopulator

public AnnotatedResultSetPopulator(Class<T> beanClass,
                                   BeanStringPopulator<?>... populators)
                            throws UnsupportedFieldTypeException
Throws:
UnsupportedFieldTypeException

AnnotatedResultSetPopulator

public AnnotatedResultSetPopulator(Class<T> beanClass,
                                   List<? extends BeanStringPopulator<?>> populators)
                            throws UnsupportedFieldTypeException
Throws:
UnsupportedFieldTypeException
Method Detail

populate

public T populate(ResultSet rs)
           throws SQLException,
                  BeanResultSetPopulationException
Specified by:
populate in interface BeanResultSetPopulator<T>
Throws:
SQLException
BeanResultSetPopulationException

getResultSetField

public ResultSetField getResultSetField(Field field)


Copyright © 2011. All Rights Reserved.