DButils使用示例:
1-3. 查询
4-5. 插入
6 . 删除
7 . 修改
1:查询单个记录,返回实体Bean
User user = qr.query(conn,
"select * from user where username='admin'",
new BeanHandler<User>(User.class));
2:查找单个记录,返回Map集合
Map<String, Object> map = qr.query(conn, "SELECT * FROM user where username=?", new MapHandler(),"admin");