LeftMenu/mywms64.gif

Main page

FAQ
HOWTO
Components

Page Index

myWMS News
Mailinglist
lexicon

Recent Changes
WikiEtiquette

Find pages
Unused pages
Undefined pages

Impressum

Set your name in
UserPreferences

Edit this page


Referenced by
...nobody




JSPWiki v2.2.33
i18n support


[RSS]

Transfer Object


A transfer object (TO) is used to send data from one peer to another. Usually it is a serializable POJO, containing just public attributes.

So far no constraints are implemented inside a TO. If a checking is required, the receiver of a TO needs to check the specified values on its own, as if it was some parameter checking of a usual method.

Pattern

  1. The TransferObject will be creates with in the apropriate BusinessObject. This implies, that an existing BusinessObject implies, that a TransferObject exists for it.
  2. The BusinessObject implements the method public TransferObject toTransferObject(). Each object oriented derivation of the business object implements the right version of TransferObject toTransferObject().
  3. The BusinessObject implements the method protected TransferObject createTransferObject() which instantiates the appropriate version of the TransferObject.
  4. The BusinessObject implements the method public fromTransferObject(TransferObject to).



Go to top   Edit this page   More info...   Attach file...
This page last changed on 17-Oct-2005 14:45:33 CEST by OlafKrause .