This sample code returns whole record of table into a java List.

Java Code:
public List getList() {

     jt = new JdbcTemplate(dataSource);
     List rows = jt.queryForList("select * from persone");
     return rows;
}