SpringBeanUtils和ApacheBeanUtils属性拷贝的对比和应用  被引量:1

Comparison and application of SpringBeanUtils and ApacheBeanUtils property copy

在线阅读下载全文

作  者:杨春发 潘鹤 李鑫 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[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象