File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving and updating Composite Transfer Objects

 
Phani Sajja
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
From my front controller I am executing the corresponding command based on the url. This command has to collect the data from the database and the data made available to the next view. Here The command has to get a transfer object from the database and update it. Transfer object can also be composite transfer object. Can I directly call the DAO code in command or apply a pattern here. How can I get and update these composite transfer objects using a pattern.

Thanks
Phani
 
Praison Selvaraj
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Phani,

The "Transfer Object Assembler" is precisely for this.

Refer
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObjectAssembler.html

Thanks,
Praison
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic