In: Computer Science
In Java, explain the concept of a business object. What is the purpose of a business object?
Business Object - Business Service fills the Transfer Object with data.
Transfer Object - Simple POJO having methods to set/get attributes only.
Client - Client either requests or sends the Transfer Object to Business Object.
Basically what is the concept of Business object is:-
A business object is an actor within the business layer of a layered object-oriented computer program that represents a part of a business or an item within it.
A business object represents a data client and can be implemented as an entity bean, a session bean, or another Java object.
A business object can take the form of a data array but is not a database itself. It represents business entities such as an invoice, a transaction, or a person.
Business objects are inherently scalable due to the architecture of object-oriented software applications.
ii). Purpose of Business Object:-
A business object may represent, for example, a person, place, event, business process, or concept and exist as for example an invoice, a product, a transaction, or even details of a person.
Although classes may contain executing or management behaviors, a business object is usually inert holding sets of instance variables or properties.
A business object may also make client data requests to the Data Access Object (DAO) and receive data through the Transfer Object (TO).
Business objects enable designers to design software in manageable pieces by breaking the business down into a modular form and separating each function into a software object so that as development progresses, increasing complexity can be added without huge changes to the other objects.
The layered architecture protects the application of functional objects such as the TO and DAO from the client business objects.
The main purpose of Business objects is A business object is responsible for holding multiple numbers of instance properties or variables. The business object is also responsible for invoking requests for client data to the Data Access Object (DAO). It receives the data from the Transfer object (TO).
This is about Business objects in Java.
Thank You...!