Class BeanHandler<T>

java.lang.Object
org.apache.commons.dbutils.handlers.BeanHandler<T>
Type Parameters:
T - the target bean type
All Implemented Interfaces:
ResultSetHandler<T>

public class BeanHandler<T> extends Object implements ResultSetHandler<T>
ResultSetHandler implementation that converts the first ResultSet row into a JavaBean. This class is thread safe.
See Also:
  • Constructor Details

    • BeanHandler

      public BeanHandler(Class<? extends T> type)
      Creates a new instance of BeanHandler.
      Parameters:
      type - The Class that objects returned from handle() are created from.
    • BeanHandler

      public BeanHandler(Class<? extends T> type, RowProcessor convert)
      Creates a new instance of BeanHandler.
      Parameters:
      type - The Class that objects returned from handle() are created from.
      convert - The RowProcessor implementation to use when converting rows into beans.
  • Method Details