File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Cade's book OrderListVO and OrderTO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Cade Watch "Cade New topic
Author

Cade's book OrderListVO and OrderTO

Loga Nathan
Greenhorn

Joined: Dec 23, 2003
Posts: 21
Hi,

In Cade's sample application for Review Order Sequence (page 149), he uses an OrderListVO and OrderTO. He could use the OrderTO in a list, isn't it, why create an OrderListVO when that does not have any additional attributes? Also why use a VO and TO terminology, from what I understand a VO is an old name for TO?

Thanks.
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
Hi Loga,
The diagram is on page 176 in my book. You're right about VO being an old name for TO. Cade uses VO because its a fairly old book.

Cade is using a SLSB which is why he doesn't have any extra attributes in the OrderListVO.

Ray
Loga Nathan
Greenhorn

Joined: Dec 23, 2003
Posts: 21
Thanks Ramon, I'm trying to figure out why Cade did not use a list of OrderTO but instead created a new OrderListVO.

I can see an OrderListVO will be needed if the list itself has some general property(attributes) that concerns the entire list but if not for that he could create a list (eg: ArrayList) of OrderTOs why go for a separate OrderListTO or VO is what I'm wondering about?

OrderListVO orderList = new OrderListVO();

or
ArrayList orderList = new ArrayList();
orderList.add(new OrderTO());

Is it necessary to create a separate listVO? There seems to be no right or wrong answer, any opinions please?
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
Is it to cut down on the amount of data transferred over the network?

Ray
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cade's book OrderListVO and OrderTO
 
Similar Threads
Where are Entity Beans?
In what tier to put O/R mapping?
OrderListVO and OrderTO in Cade's diagrams
Crisscrossing lines in component diagram
your favorite movie dialog