16 WebSphere Business Integration Adapters
2.3.2 Hierarchical business object
Hierarchical business object definitions define the structure of multiple related
entities, encapsulating not only each individual entity but also aspects of the
relationship between entities. In addition to containing at least one simple
attribute, a hierarchical business object has one or more attributes that are
complex (that is, the attribute itself contains one or more business objects, called
child business objects). The business object that contains the complex attribute is
called the
parent business object.
There are two types of relationships between parent and child business objects:
Single cardinality When an attribute in a parent business object represents
a single child business object. The type of the attribute is
set to the name of the child business object, and the
cardinality is set to one.
Multiple cardinality When an attribute in the parent business object
represents an array of child business objects. The type of
the attribute is set to the name of the child business
object, and the cardinality is set to n.
In turn, each child business object can contain attributes that contain a child
business object, or an array of business objects, and so on. The business object
at the top of the hierarchy, which itself does not have a parent, is called the
top-level business object. Any single business object, independent of its child
business objects that it might contain (or that might contain it), is called an
individual business object.
2.3.3 Business object structure
The way a connector or data handler processes business objects is determined
in part by the structure of the business objects that it supports.
As you design the structure of an application-specific business object, you need
to determine what structure best represents a particular application entity and
how this structure affects the design of connector and data handler logic or how
the structure is processed by an existing connector or data handler. Although a
goal of connector and data handler design is to code a connector or data handler
so that it can handle new and changed business objects without modification, it is
difficult to create a connector or data handler that can handle any possible
business object.
Typically, a connector or data handler is designed to make assumptions about
the structure of its business objects, the relationships between parent and child
business objects, and the possible application representation of business