Version 1 (modified by meddle, 16 years ago) (diff) |
---|
Analysis
(The purpose of the analysis is to give as much as possible of the needed information for designing and implementing the task.)
Overview
There will be singleton class that will provide the connections and communications with the database. There will be entity classes that will correspond to tables in the database
Task requirements
We must decide how we will implement the persistence of the entities to the database. We must design and implement the IDatabaseManager using some of the following approaches or something else :
- Use reflection and the entities property names?
- The entities are dictionaries with appropriate getters and setters?
- Static strings for names?
- Every entity has it's own persist, update, insert, etc methods, that use IDatabaseManager? In that case the database manager will have methods like openConnection and closeConnection...
We must decide if we will have opened connection all the time or for every action to the database we will open a connection.
Task result
The end result will be interface for communication with the database.
Implementation idea
(It is advisable to include some rough implementations ideas.)
Related
(Here you can add related tasks that could be useful or helpful.)
How to demo
(In this section you must add instructions for the demo of the task.)
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)