1 package net.sf.voruta;
2
3 /***
4 *
5 * @author baliuka
6 */
7 public class DemoBeanHandler implements ResultSetHandler{
8
9 /*** Creates a new instance of DemoBeanHandler */
10 public DemoBeanHandler() {
11 }
12
13 public Object handle(DbResultSet rs,Class retsutType,Object[] params) throws Exception {
14 if(rs.next()){
15 Object bean = params[0];
16 DbUtils.resultSetToBean(rs, bean);
17 if(rs.next()){
18 throw new java.sql.SQLException();
19 }
20 return bean;
21
22 }
23 throw new java.sql.SQLException();
24
25 }
26
27
28 }
This page was automatically generated by Maven