请输入您要查询的百科知识:

 

词条 Business object
释义

  1. Function

  2. Examples

  3. See also

  4. References

  5. External links

{{Redirect|Business objects|the software company|Business Objects}}

A business object is an entity within a multitiered software application that works in conjunction with the data access and business logic layers to transport data.{{cn|date=January 2016}}

Function

Whereas a program may implement classes, which typically end in objects managing or executing behaviors, a business object usually does nothing itself but holds a set of instance variables or properties, also known as attributes, and associations with other business objects, weaving a map of objects representing the business relationships.

A domain model where business objects do not have behaviour is called an anemic domain model.

Business objects separate state from behavior because they are communicated across the tiers in a multi-tiered system, while the real work of the application is done in the business tier and does not move across the tiers.

Examples

For example, a "Manager" would be a business object where its attributes can be "Name", "Second name", "Age", "Area", "Country" and it could hold an 1-n association with its employees (a collection of Employee instances).

Another example would be a concept like "Process" having "Identifier", "Name", "Start date", "End date" and "Kind" attributes and holding an association with the "Employee" (the responsible) that started it.

See also

  • Active record pattern
  • Business intelligence
  • Data access object
  • Data transfer object

References

  • Rockford Lhotka, Visual Basic 6.0 Business Objects, {{ISBN|1-86100-107-X}}
  • Rockford Lhotka, Expert C# Business Objects, {{ISBN|1-59059-344-8}}
  • Rockford Lhotka, Expert One-on-One Visual Basic .NET Business Objects, {{ISBN|1-59059-145-3}}

External links

  • A definition of domain model by Martin Fowler
  • Anemic Domain Model by Martin Fowler

1 : Programming constructs

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 5:29:55