当前位置:网站首页>Object partition
Object partition
2022-06-21 23:59:00 【Hoh Xil's flight】
Reproduced in :http://www.hollischuang.com/archives/553
PO(persistant object) Persistent object
stay o/r The concept that appears when mapping , without o/r mapping , There is no such concept . It usually corresponds to the data model ( database ), It also has some business logic processing . It can be seen as mapping to tables in the database java object . The simplest PO It is a record in a table corresponding to the database , Multiple records can be used PO Set . PO There should be no database operations in the .
DO(Domain Object) Domain object
A tangible or intangible business entity abstracted from the real world .
It generally corresponds to the table structure in the data .
TO(Transfer Object) , Data transmission object
Different in applications tie( Relationship ) Between objects
Entities sent between microservices
DTO(Data Transfer Object) Data transmission object
This concept comes from J2EE Design mode of , The original purpose was to EJB Distributed applications provide coarse-grained data entities , To reduce the number of distributed calls , This improves the performance of distributed calls and reduces network load , But here, , I refer generally to the data transfer objects used between the presentation layer and the service layer .
VO(view object) The value object
View objects , For display layer , Its function is to put a specified page ( Or component ) All the data of .
BO(business object) The business object
From a business model perspective , see UML Domain objects in component domain model . Encapsulating business logic java object , By calling DAO Method , combination PO,VO Conduct business operations . business object: The business object The main function is to encapsulate the business logic as an object . This object can include one or more other objects . Like a resume , Have educational experience 、 Work experience 、 Social relations and so on . We can match educational experience with PO , Work experience corresponds to a PO , Social relations correspond to one PO . Create a resume for BO Object processing resume , Every BO Contains the PO . When doing business logic like this , We can aim at BO To deal with .
POJO(plain ordinary java object) Simple and irregular java object
In a purely traditional sense java object . That is to say, in some Object/Relation Mapping In the tools , Be able to maintain database table records persisent object It's exactly a match for Java Bean Normative purity Java object , No other attributes or methods have been added . My understanding is the most basic Java Bean , Only attribute fields and setter and getter Method !.
DAO(data access object) Data access object
It's a sun A standard of j2ee Design patterns , There is an interface in this pattern that is DAO , It negates the operation of persistence layer . Provide interfaces for the business layer . This object is used to access the database . Usually and PO Use a combination of , DAO Contains a variety of database operations . By its way , combination PO Related operations on the database . Sandwiched between business logic and database resources . coordination VO, Providing the database CRUD operation
边栏推荐
- 小程序与工业互联网是怎样相辅相成的
- Win11打字不显示选字框怎么办?Win11打字不显示选字框的解决方法
- Elementary transformation of numpy matrix
- What is the fault when the router is connected but not connected to the network
- 树莓派开发笔记(十六):树莓派4B+安装mariadb数据库(mysql开源分支)并测试基本操作
- Software project lawyer due diligence white paper - full text 19 pages, please contact the author
- 被八股文害惨了。。。。
- 关于 SecureFx传输远程服务器中文显示乱码 的解决方法
- QT document reading notes staticmetaobject parsing and instances
- Unity-网络开发(二)
猜你喜欢

Fork join thread pool

I was badly hurt by the eight part essay....

Cvpr2022 𞓜 loss problem in weakly supervised multi label classification

Today's sleep quality record 81 points

You have a chance, here is a stage

windows sql server 如何卸载干净?

Based on vscode platformio under Arduino framework, one project is configured with two compatibility modes of different development boards

Unity network development (I)

Youth without words │ use technology to frame the best memories of graduation season

QT practical skill: close unnecessary warning prompt on the right in the qtcreator editing area
随机推荐
Leetcode-543- diameter of binary tree
Cvpr2022 𞓜 loss problem in weakly supervised multi label classification
Basic contents of external sorting
redis主从复制(九)
Flexer series: indexedstack in Flexer
目标检测、视觉弱监督学习、大脑多模态成像技术等CV综述来了!图像图形学发展年度报告综述专刊!
What is the fault when the router is connected but not connected to the network
组件传值:子组件向父组件传递数据
请问东方财富期货正规吗?这家平台安全靠谱么?
Xiuno修罗轻论坛仿知乎蓝简约响应式主题模板1.7+自适应PC+WAP端
Layout roadmap, the perfect combination of spatial layout and data visualization
树莓派开发笔记(十六):树莓派4B+安装mariadb数据库(mysql开源分支)并测试基本操作
2022年云计算的趋势有哪些?
洞見數據價值,啟迪數字未來,《數字化的力量》問世
Win11 how to change the desktop file path to disk D
C delegate
Reprint: network loading framework - retrofit
RK3568开发笔记(二):入手RK3568开发板的套件介绍、底板介绍和外设测试
Based on vscode platformio under Arduino framework, one project is configured with two compatibility modes of different development boards
Rk3568 Development Notes (III): update source, installation of network tools, serial port debugging, network connection, file transfer, installation of vscode and Samba shared services for rk3568 virt