| Basic HashMap wrapper for the Data Transfer Object pattern. The goal of this
class is to provide efficient serialization over the wire of DBOBjects and
or the up and coming DataObjects. By encapsulating the 'data guts' of the
data objects into this class, routing programs that don't have to know anything
about a particular instance of a DBObject/DataObject don't have to have any
large code base installed on them.
The other advantage of DataTransferObject is serialization size. On
tests conducted 3/17/04, the size of com.jcorporate.expresso.services.dbobj.MimeTypes
was 1310 bytes. The size of the same item converted into a DataTransfer
object was 293 bytes. For in-memory serialization alone, this translates
to twice as fast. For slower connections such as sockets, this speed translation
will be more pronounced.
author: Michael Rimov since: Expresso 5.0 |