list&lt;page&gt;pages＝runner.query(connection, "select*from page",new beanlisthandler&lt;page&gt;(page.class));