Forums Register Login

Domain Object LightWeight Object Business Object

+Pie Number of slices to send: Send
I am confused with These terms, i am not coming out with examples or accurate results while studying these

Could please share me an example to explain these terms, or how to understand them

Lightweight Objects:
I am getting it in AWT language. But how generally it could be explained?
A heavyweight component is one that is associated with its own native screen resource (commonly known as a peer).
A lightweight component is one that "borrows" the screen resource of an ancestor (which means it has no native resource of its own -- so it's "lighter").

Does, in general, this means object of Derived Class is Lightweight Object?

Even when we read following statement:
An entity is a lightweight persistence domain object.

Lightweight means? It borrows something from ancestor which means? it does not have it ows? correct?

Business and Domain Objects

Are these EXACTLY same?

as i read
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.

Like i am making application which process one record from database, for that it calls web service and put data into database. I Just declared one object which is handling all this, so it would be termed as Business object?

as i also read
business objects and domain objects are collections of properties, modelled after the real-world entities you want to manage with your application

Which means both are same?

Domain should be like object dealing with particular domain type like i take example object having Medical knowledge only have different components of object having Non medical knowledge. So in total both are business objects and each are domain too


Please suggest me about these!!!
+Pie Number of slices to send: Send
 

Azrael Noor wrote:I am confused with These terms, i am not coming out with examples or accurate results while studying these


I suspect that these terms may have a specific meaning in whatever you're reading.

The only one that I can offer an opinion on is a "Business Object", because I used to be a data modeller.

A Business Object is an object that has some meaning to the "business" - nothing more, nothing less. They often have a close relationship to Business Processes, and will usually be well-defined by the business itself; so you will have little to explain when dealing with non-computer staff.

Examples might include: "Customer", "Invoice", "Month-end", "Cash-out", "Stock", "Stocktake" and gazillions more.

The only other thing I remember about them from when I was modelling was: "Call 'em what the client calls 'em...even if you think it's stupid."

Winston
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 875 times.
Similar Threads
Is JFrame added to JFrame heavyweight or lightweight?
swing and Awt
lightweight component
what is the meaning of Heavy weighted component and light weighted component.
Difference between lightweight and heavyweight objects
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:48:21.