Transfer Object

Also Known As

Previously known as Value Object

Brief Description

Some entities contain a group of attributes that are always accessed together. Accessing these attributes in a fine-grained manner through a remote interface causes network traffic and high latency, and consumes server resources unnecessarily.

A transfer object is a serializable class that groups related attributes, forming a composite value. This class is used as the return type of a remote business method. Clients receive instances of this class by calling coarse-grained business methods, and then locally access the fine-grained values within the transfer object. Fetching multiple values in one server roundtrip decreases network traffic and minimizes latency and server resource usage.

Detailed Description

See the Core J2EETM Patterns

Detailed Example


Copyright © 2002 Sun Microsystems, Inc. All Rights Reserved.