Object Definition
Data Object)
Data Access Object)
Business Object (Biz Object)
Object Factory)
CommonLogic Object)
Application Object)
Result object (ResultObject)
Data Object)
The Data object is basically the representation of the Data Entity in the application. Generally, each major table in a database has a corresponding data object. The data object itself does not have a method, so its function is similar to the structure of C. The data may be from database tables, XML documents, or file-based materials.
Data Access Object)
Data storage objects are basically some methods to process the corresponding data objects. The data source of the shareholding data object is the database table. Data Access Object
Business Object (Biz Object)
Business Object is in Business Logic Tier. Its main function is to set a Data Object (or a data object set) and related business logic "package" to facilitate the processing of application objects. The Data Object contained in Biz Object should be private (Data Object is a Member Attribute of Biz Object, and all behaviors (Behavior) should be processed by Method. In addition, the Biz Object itself does not produce output results to the Presentation (Display) layer, but it can pass its own data to the Result Object. In addition to the logic of the business object itself, the business object itself is also responsible for database operations, but the business object is not self-instantiate (instance), such features need to rely on the Business Object factory. A business object contains a data object or a collection of data objects. The processing logic and method may be different.
A business object that processes data objects is named in the singular number. A business object that processes a data object set is named in the plural number.
Each business object can have a DefaultOutput method, which is used to pass some data of its own entity and some calculated data into ResultObject. For details, see Result Object.
Object Factory)
The Business Object factory is applied in Business Logic Tier. Its main function is to generate an empty Business object or generate a new Business object from the database. We have discussed how to put all the data operations in the business object factory so that the work of each object can be further divided. If necessary, we will make adjustments here in the future.
CommonLogic Object)
Shared album objects should be applied in the (Buisness Logic Tier. Its application generates results when a logic requires two or more Biz objects, and this logic is used by different use cases.
Application Object)
The application object is in Business Logic Tier. Its main functions are as follows:
Parameters for receiving requests and understanding (interpret) requests at the page Layer
Deactivating and instantiate (instantiation) Business Objects
Process business logic
You can mobilize a total of Luo Ji objects.
Generate the output and put the output Result into Result Obj
Result object (ResultObject)
Result Object is a 'general object '. For requests at the presentation layer, the business logic layer returns a unified Result Object, and the content of the Result Object is a custom Object, the developer responsible for the presentation layer and business layer should first define what is in it. resultObject? It can be used as an XML document. Basically, it is only used to bring data from the Business Tier (Business Layer) to the Presentation Tier (performance Layer), A data carrier (data transmission tool ). He can transport information of one or more business objects.
Result Object does not have its own Method. It can be applied to objects or business object operations.