Target types for inline methods that query databases

Unless you return query results in a java.sql.ResultSet object, you must choose which target data type you want to use to contain the individual rows in the results of a query.
The following list presents the possible target data types in order of increasing complexity.

After you choose the target data type, consider whether you need a custom RowHandler to transform information selected from the data source into the target Java type. You can create instances of beans either with pureQuery's default mapping from a SELECT statement's select-list to the target Bean class, or by using a RowHandler. RowHandler objects are equally appropriate when the situation requires a primitive wrapper class, simple Object type, or Map be produced from information that is captured in a ResultSet's row.


Feedback