Question

In: Computer Science

In Java, explain the concept of a business object. What is the purpose of a business...

In Java, explain the concept of a business object. What is the purpose of a business object?

Solutions

Expert Solution

  • Answer:-
  • i). The concept of a business object:-
  • Before going to know about the Business object, we need to know the concept of Design Patterns of Java.
  • And in the concept of Transfer Object Pattern, we came to know about the Business object, Transfer object, and client.
  • The Transfer Object pattern is used when we want to pass data with multiple attributes in one shot from client to server.
  • Transfer object is also known as Value Object.
  • Transfer Object is a simple POJO class having getter/setter methods and is serializable so that it can be transferred over the network.
  • It does not have any behavior. Server Side business class normally fetches data from the database and fills the POJO and send it to the client or pass it by value.
  • For the client, the transfer object is read-only.
  • The client can create its own transfer object and pass it to the server to update values in the database in one shot.
  • The following are the entities of this type of design pattern.
  • 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...!


Related Solutions

Explain the concept of risk and a risk premium as it pertains to economics. What purpose...
Explain the concept of risk and a risk premium as it pertains to economics. What purpose do risk premiums serve? Which would you expect to have a higher risk premium: stocks or bonds?
Purpose: To write an Object-Oriented application that creates a Java class with several instance variables, a...
Purpose: To write an Object-Oriented application that creates a Java class with several instance variables, a constructor to initialize the instance variables, several methods to access and update the instance variables’ values, along with other methods to perform calculations. Also, write a test class that instantiates the first class and tests the class’s constructor and methods. Details: Create a class called Rectangle containing the following: Two instance variables, An instance variable of type double used to hold the rectangle’s width....
The following Java program is NOT designed using class/object concept. public class demo_Program4_non_OOP_design { public static...
The following Java program is NOT designed using class/object concept. public class demo_Program4_non_OOP_design { public static void main(String[] args) { String bottle1_label="Milk"; float bottle1_volume=250; float bottle1_capacity=500; bottle1_volume=addVolume(bottle1_label, bottle1_volume,bottle1_capacity,200); System.out.println("bottle label: " + bottle1_label + ", volume: " + bottle1_volume + ", capacity: " +bottle1_capacity); String bottle2_label="Water"; float bottle2_volume=100; float bottle2_capacity=250; bottle2_volume=addVolume(bottle2_label, bottle2_volume,bottle2_capacity,500); System.out.println("bottle label: " + bottle2_label + ", volume: " + bottle2_volume + ", capacity: " +bottle2_capacity); } public static float addVolume(String label, float bottleVolume, float capacity, float addVolume)...
in java What object is passed to the start method in a JavaFX program? What should...
in java What object is passed to the start method in a JavaFX program? What should you do with it?
Explain the concept and purpose of z-scores and calculate them for the performance of the following...
Explain the concept and purpose of z-scores and calculate them for the performance of the following set of portfolio managers. Portfolio Portfolio Performance Manager (Annualised Return Z 2% W 11% T -4% S 5%
Which of the following statements regarding the business purpose concept is true? a.The only test for...
Which of the following statements regarding the business purpose concept is true? a.The only test for deductibility vis-a-vis the business purpose concept is that an expenditure must directly create profit. b.The dominant motive for incurring a business expense need not be to earn a profit independent of any tax savings. c.If the secondary purpose of a transaction is tax savings, it will not be allowed as a deduction. d.To be deductible, the business purpose concept requires an expenditure to have...
Explain the purpose and importance of the business plan 1 PAGE
Explain the purpose and importance of the business plan 1 PAGE
Describe the Object Management Group (OMG) consortium and what is its purpose and contribution.
Describe the Object Management Group (OMG) consortium and what is its purpose and contribution.
Discuss the concept of a “dividend” under ITA 2007. Explain the purpose of an imputation credit...
Discuss the concept of a “dividend” under ITA 2007. Explain the purpose of an imputation credit account (ICA) and provide one example each of credit and debit entries in the ICA with appropriate references to ITA 2007.
Explain the concept of globalisation and explore its implications for business?
Explain the concept of globalisation and explore its implications for business?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT