Frage

Say that I have a program with the following architecture:

GUI: The graphic user interface which let the user interact with the program

Control: the "logic" of the program and the middle man between the GUI layer and the wrapper-layer.

DatabaseWrapper: The layer which handles connections to the database and retrieves data as result sets which are then returned to the Control layer as data structures that are not specifically related to databases, such as arrays and Strings.

Database: The database outside the program.

Does this particular architecture has a name? I presume it is MVC (Model–View–Controller) where Model is Database, View is GUI and Controller is Control? However, this either leaves out the Database or else 'model' of MVC is in this case simply composed of both Database and DatabaseWrapper? So maybe there is another more adequate name for the above architecture? Any help much appreciated. It is for a school project.

War es hilfreich?

Lösung

What you describe is a form of a three tier layered architecture where you separated the data access layer (Database Wrapper) from the data store (database).

Check this article from msdn or the obligatory wikipedia article. Look at this image from another article: 4 layers

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top