Database and database acessors are most low-layer in the system.
Database table is designed by following rules.
Mostly, each database table has its accessor class.
Basically, database accessor should have minimal set of functions to get, update, insert and delete the data. More complex functions should be defined by Interface layer. But some complex functions which need to join several tables could be defined as a special case.
Usually, some of following functions are defined.
If some columns of a table requires to be multilingualized, two functions is implemented to take a value.
|
Implementation Guideline |
Interface |