|
|
|
@ -3,10 +3,8 @@ package org.panda.jdbc; |
|
|
|
|
import org.panda.beans.util.BeanUtil; |
|
|
|
|
import org.panda.code.uitl.ReflectionUtil; |
|
|
|
|
|
|
|
|
|
import org.panda.jdbc.annotation.Column; |
|
|
|
|
import org.panda.jdbc.sql.BeanSqlUtil; |
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.sql.ResultSet; |
|
|
|
|
import java.sql.ResultSetMetaData; |
|
|
|
|
import java.sql.SQLException; |
|
|
|
@ -29,9 +27,7 @@ public class BeanHander implements ResultSetHandler { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
Object bean = BeanUtil.instantiateClass(clazz); |
|
|
|
|
ResultSetMetaData metadata = rs.getMetaData(); |
|
|
|
|
//数据总数
|
|
|
|
|
int coulumnCount = metadata.getColumnCount(); |
|
|
|
|
|
|
|
|
|
List<Field> fieldList = BeanUtil.getAllField(clazz); |
|
|
|
|
|
|
|
|
|
for (Field f:fieldList){ |
|
|
|
|