src/org/nutz/dao/QueryResult.java
@SuppressWarnings("unchecked")
    public <T> List<T> convertList(Class<T> eleType) {
        if (null == list || list.isEmpty())
            return (List<T>) list;

        List<T> re = new ArrayList<T>(list.size());
        Castors castors = Castors.me();
        for (Object obj : list)
            re.add(castors.castTo(obj, eleType));

        return re;
    }
@SuppressWarnings("unchecked")
    public <T> List<T> convertList(Class<T> eleType) {
        if (null == list || list.isEmpty())
            return (List<T>) list;

        List<T> re = new ArrayList<T>(list.size());
        Castors castors = Castors.me();
        for (Object obj : list)
            re.add(castors.castTo(obj, eleType));

        return re;
    }
@ SuppressWarnings ( "unchecked" ) public < T > List < T > convertList ( Class < T > eleType ) { if ( null == list || list . isEmpty ( ) ) return ( List < T > ) list ; List < T > re = new ArrayList < T > ( list . size ( ) ) ; Castors castors = Castors . me ( ) ; for ( Object obj : list ) re . ( castors . castTo ( obj , eleType ) ) ; return re ; }
转换为特定类型的结果集
@param eleType 新的结果集
@return 特定类型的结果集
转换为特定类型的结果集