UI5
UI5使用Association和Aggregation描述控件之间的关系。
Aggregation:parent和子控件在lifecycle上存在依赖关系:
When a ManagedObject is destroyed, all aggregated objects are destroyed as well and the object itself is removed from its parent. That is, aggregations won't contain destroyed objects or null/undefined.
比如UI5的转盘控件Carousel: 一旦转盘被析构,里面显示的page当然也没有继续存在的意义了,需要跟着被析构。
而Association描述了在lifecycle层面的一种soft dependency关系:
Managed associations also form a relationship between objects, but they don't define a lifecycle for the associated objects. They even can 'break' in the sense that an associated object might have been destroyed already although it is still referenced in an association.
最明显的例子就是控件和其label的关系,比如button和label:技术上来说,可以彼此分开独立存在。
CRM
CRM的Genil model存在三种类型的relation,可以在doman CRM_RELATION_KIND里查看:
区别:
-
Association: Link between any kind of objects. Can also be defined across components with root or access object as target. 依赖关系最为loose的一种relation,可以用来连接跨model之间的节点。
-
Aggregation: Binds child objects to a root object. Only access and dependent objects can be aggregated. 只适用于同一模型的节点之间的关联。
-
Composition: Like an aggregation, but composed child objects always exist. 特殊类型的Aggregation。目标节点的Cardinality为1或者1..n
S/4HANA
只有两种:association或者composition。Composition的含义同CRM里的aggregation,而association的含义同UI5和CRM中的association一致。
C4C
只有两种: association或者composition。C4C的这两种relation多了一个限制:relation的目标BO必须和源BO在同一个部署单元Deployment Unit,或者目标BO位于Foundation部署单元内。
Association的语法如下图:
association的multiplicity只支持[0,1]或者[1,1], 如果不显式指定,默认为[1,1].
C4C relation的一个特色是,一旦申明了一个子节点之后,系统会默认生成一个对应的composition。
下图第4行代码会自动生成一个[0,n]的从root节点到Item节点的composition。
要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:
相关推荐
Association, Aggregation and Composition 的区别 在 Java 应用程序开发中,理解 UML 类图元素及其与 Java 的映射关系是非常重要的。其中,Association、Aggregation 和 Composition 是三个常见的 UML 元素,它们...
在IT领域,尤其是在优化模型的研究与应用中,聚合(Aggregation)与解聚合(Disaggregation)技术及其方法论扮演着至关重要的角色。这些技术旨在处理数据与决策模型之间的复杂关系,平衡模型的细节程度与解决模型的...
Edzer Pebesma (2018). Numerical “map overlay” ...spatial data, so that any spatial properties can be used to define an aggregation predicate, and any R function can be used as aggregation function.
and in practice, this new aggregation allows to keep the same sample efficiency of SG methods while increasing the batch size. Experimentally, we also show that in the case of smooth convex ...
"Aggregation and adhesion properties of 22 Lactobacillus strains" 这篇文章主要探讨了22株不同物种的乳杆菌的自聚性、共聚性、疏水性和粘附性等特性,这些特性是衡量乳杆菌作为潜在益生菌的重要指标。...
标题"tcp.tar.gz_aggregation_aggregation in ns2_ns2_ns2 aggregation_tc"暗示了我们即将探讨的是NS2中TCP协议与802.11 MAC层的聚合(aggregation)功能,以及可能涉及的TCP分片重组(fragment retransmission)...
标题中的"Recurrent Squeeze-and-Excitation Context Aggregation Net for Single Image Deraining"是一种用于单张图像去雨的深度学习模型,它结合了循环神经网络(RNN)与卷积神经网络(CNN)的优势,旨在提升图像...
Osmolality dependence of erythrocyte sedimentation and aggregation in a strong magnetic field Bioelectromagnetics 22:46^52 (2001) Osmolality Dependence of Erythrocyte Sedimentation and Aggregation ...
JavaScript Applications with Node.js, React, React Native and MongoDB: Design, code, test, deploy and manage in Amazon AWS By 作者: Eric Bush ISBN-10 书号: 0997196661 ISBN-13 书号: 9780997196665 出版...
Some induced geometric aggregation operators with intuitionistic fuzzy information and their application to group decision making,卫贵武,,With respect to multiple attribute group decision making ...
In conclusion, the HP Auto Port Aggregation (APA) Release Notes detail the latest advancements in network aggregation technology, focusing on improving performance, reliability, and compatibility....
Unified log processing is a coherent data processing architecture designed to encompass batch and near-real-time stream data, event logging and aggregation, and data processing on the resulting ...
07.grouping_and_aggregation.ipynb
在无线传感器网络(WSN)领域,网内数据融合(In-network Aggregation)技术是实现高效、节能的关键策略之一。此技术允许在网络中的多个节点上进行数据处理和汇总,从而减少了数据传输的需求,节省了能量,提高了整个...
### 关联、聚合(Aggregation)以及组合(Composition)的区别 在面向对象设计中,类之间的关系是非常重要的概念。这不仅有助于理解系统架构,还能帮助开发者更好地组织代码。本篇文章将详细探讨关联、聚合...
低速率分布式拒绝服务攻击(LDDoS)是一种网络攻击手段,其核心特点在于利用低速率流量对目标发起攻击,以此来降低网络流量速率,避免被基于异常检测的防御系统发现。LDDoS攻击通过分布在不同源的多个低速率拒绝服务...
在本文中,我们将深入探讨GXT组件的使用,特别是关于Aggregation Grid的教程。GXT是Sencha提供的一款强大的JavaScript库,专为构建企业级Web应用程序而设计,它提供了丰富的UI组件和数据网格功能。Aggregation Grid...
Aggregation Aggregation Aggregation 适合聚类使用!有多类簇
Fuzzy Linguistic Hybrid Geometric Aggregation Operator and Its Application to Group Decision Making,卫贵武,,With respect to multiple attribute group decision making problem with triangular fuzzy ...