Data Transfer ObjectThe book has now been published and the content of this chapter has likely changed substanstially.
Also known as: Transfer Object
Make the objects returned by a method immutable by copying their contents into special objects that only contain values and have no behavior.
Use a Transfer Object to encapsulate the business data. A single method call is used to send and retrieve the Transfer Object. When the client requests the enterprise bean for the business data, the enterprise bean can construct the Transfer Object, populate it with its attribute values, and pass it by value to the client.
From [CJ2EEP]: http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
Copyright © 2003-2008 Gerard Meszaros all rights reserved