Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

[newbe]Transfer objects

Thread view: 
polilop - 09 Jan 2007 10:21 GMT
Is it possible to make Transfer object (as i found somwhere,  known as:Value
object's) with POJO's.
If so, any tutorials on the web would be appriciated (been googl-ing but
found only with ejb's).
Thanks
Alex Hunsley - 09 Jan 2007 11:24 GMT
> Is it possible to make Transfer object (as i found somwhere,  known as:Value
> object's) with POJO's.

Yes. Just write a java class with some member values that can be set (or
specified at constructor time) and also get. Rather than writing
getters, if the value object/transfer object is immutable (won't change
after creation), it's worth considering making the member values public
final and hence allowing direct access to them.

> If so, any tutorials on the web would be appriciated (been googl-ing but
> found only with ejb's).
polilop - 09 Jan 2007 11:25 GMT
Thanks for reply. Have you any web-s, tutorials like that involve database
with TO-s (POJO's) ?
>> Is it possible to make Transfer object (as i found somwhere,  known
>> as:Value object's) with POJO's.
[quoted text clipped - 7 lines]
>> If so, any tutorials on the web would be appriciated (been googl-ing but
>> found only with ejb's).
Alex Hunsley - 09 Jan 2007 13:51 GMT
> Thanks for reply. Have you any web-s, tutorials like that involve database
> with TO-s (POJO's) ?

One of the best places I know for this is Sun's own Core J2EE patterns site:

http://java.sun.com/blueprints/corej2eepatterns/

It's also available as a book, but the patterns are all there on the web
page above. Example: click on the "Core J2EE Patterns Catalog" link,
then click on "Transfer object" in the graphic.
HTH,
lex


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.