private void query(String id, Object obj,int currentPage,int type ){
        //调用父类用来初始化执行sql所需要的变量
        createClass(id);
        List<Object> classList = new ArrayList<Object>();
        try {
            st = con.createStatement();
            if (obj != null) {
                this.parseEntity(obj);
                if(type == LIST){
                	sql = pageUtil.limitSql(sql , currentPage);
                }
                
                CommonUtil.showInfo(this.getClass().getName(), id +":" + sql);
                rs = st.executeQuery(sql);
                String entityStr = this.splitSql();
                if (entityStr.equals("*")) {
                    while (rs.next()) {
                        obj = getEntityFromFields();
                        classList.add(obj);
                    }
                } else {
                    List<List<String>> entityLists = parseSql(entityStr);
                    while (rs.next()) {
                        obj = getEntityFromList(entityLists);
                        classList.add(obj);
                    }
                }
            }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            closeAll();
        }
    }