[TOC]
### 使用方法:
~~~
@Test
public void testGet() {
String sql = "SELECT id, name, email, birth "
+ "FROM customers WHERE id = ?";
//System.out.println(sql);
Customer customer = get(Customer.class, sql, 5);
System.out.println(customer);
sql = "SELECT flow_id flowId, type, id_card idCard, "
+ "exam_card examCard, student_name studentName, "
+ "location, grade " + "FROM examstudent WHERE flow_id = ?";
//System.out.println(sql);
Student stu = get(Student.class, sql, 5);
System.out.println(stu);
}
~~~
### 通用的查询方法 返回一个对象
~~~
/**
* 通用的查询方法:可以根据传入的 SQL、Class 对象返回 SQL 对应的记录的对象
* @param clazz: 描述对象的类型
* @param sql: SQL 语句。可能带占位符
*