检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:杨春发 潘鹤 李鑫 Yang Chunfa;Pan He;Li Xin(China Power Construction Group East China Survey and Design Research Institute Co.,Ltd.,Hangzhou,Zhejiang 311122,China;China Power Construction East China Survey and Design Institute(Zhengzhou)Co.,Ltd.)
机构地区:[1]中国电建集团华东勘测设计研究院有限公司,浙江杭州311122 [2]中电建华东勘测设计研究院(郑州)有限公司
出 处:《计算机时代》2023年第1期85-88,共4页Computer Era
基 金:CIM技术在未来社区建设与运营的研究与应用(KY2020-XX-01)。
摘 要:“沣西新城”基础数据平台开发过程中,需要将持久层的对象二次封装为数据传输对象。传统的方式是调用Getter/Setter方法进行取、赋值,不仅操作繁琐,而且会造成大量代码堆积。本文旨在使用Spring和Apache的BeanUtils工具类进行对象转换,通过研究其拷贝原理,对比两种拷贝工具类在不同条件下的实验结果,总结两种工具类的应用场景,以解决平台二维数据对象间的复杂转换问题。During the development process of the CIM basic platform of Fengxi New City,it is necessary to encapsulate the objects of the persistence layer as data transmission objects twice.The traditional way is to call the Getter/Setter method to fetch and assign,which is not only cumbersome to operate,but also causes a lot of code accumulation.This article aims to use the BeanUtils tool classes of Spring and Apache for object conversion.By studying its copying principle and comparing the experimental results of the two copying tool classes under different conditions,the application scenarios of the two tool classes are summarized to solve the complex conversion problem between two-dimensional data objects of the platform.
关 键 词:Spring BeanUtils Apache BeanUtils JAVABEAN技术 反射与自省 数据传输对象
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.147.195.197