DAO and DTO terms explained

1. DTO: Data Transfer Object

  1. Data Transfer Object (DTO) (Data Transfer Object) is a software application system for transferring data between design modes. The data transfer target is often a data access object to retrieve data from a database.

     The difference between a data transfer object and a data interaction object or data access object is that one does not have any behavior other than storing and retrieving data (accessors and accessors).

  2. In the traditional system (enterprise JavaBeans) architecture, the dual purpose of the data transfer target service:

     First, they revolve around the issue that pre-ejb entities are not serializable;

     Second, they implicitly define an assembly phase, the extraction and collation of all data to be used before returning to control [presentation layer] to the data transfer target;

     The third reason is that the target of using data transfer may be that some application layer should not be able to access the underlying data access objects and thus change the data.

2. DAO: Data Access Object

  1. An object-oriented database interface that exposes the Microsoft Jet database engine (used by Microsoft Access),

     And allows Visual Basic developers to connect directly to Access tables through ODBC as if they were directly connected to other databases. DAOs are best suited for single-system applications or small local distributions

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324533834&siteId=291194637
dto