public Object queryForObject(String id, Object obj) {
            //调用父类用来初始化执行sql所需要的变量
            createClass(id);
            Object resultObj = null;
            try {
                st = con.createStatement();
                if (obj != null) {
                    this.parseEntity(obj);
                    System.out.println(sql);
                    rs = st.executeQuery(sql);
                    String entityStr = this.splitSql();
                    if (entityStr.equals("*")) {
                        if (rs.next()) {
                            resultObj = getEntityFromFields();
                        }
                    } else {
                        List<List<String>> entityLists = parseSql(entityStr);
                        if (rs.next()) {
                            resultObj = getEntityFromList(entityLists);
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                closeAll();
            }
            return resultObj;
        }