Class PojoRowParser<E>

  • Type Parameters:
    E - The class this parser will populate with values from a row
    All Implemented Interfaces:
    RowParser<E>

    public class PojoRowParser<E>
    extends Object
    implements RowParser<E>
    A very simple parser that converts one result row into one Pojo object. It simply uses the names and types of fields to map the corresponding column in the result row. For instance
     public class MyPojo {
       String name;
       Integer age;
     }
     
    Would work on a result like that: | name | age | -------------- | John | 23 | == MyPojo with name John and age 23 | Dave | 22 | == MyPojo with name Dave and age 22 Note: - The parser does NOT take into account any inheritance of fields. - The parser does NOT follow any bean specification. It simply uses the fields you declare.
    Author:
    ra