posted 17 years ago
Hi ranchers,
When i implement my databasemanager class i do everithing in this class, from readign the header, schema and data to construct my contractor objects; i see than i can separate database low level functionality and construct contractor objects and make this a bit more generic without sacrify code simplicity and later i found than it make my design more object oriented my code because each class generate have only one responsability (my databasemanager converted to transform contractor objects and an adittional helper than makes all my database operations). I see i can improve may initial thoughs when i see it works fine.
Additionally when i made my helper i found than i can pass schema parameters in a more generic way, only databasemanager pass to helper what is the schema than wants read.
I hope it helps you.
[ August 09, 2007: Message edited by: Gabriel Vargas ]
Gabriel Vargas
SCJP, SCJD, now studying for SCWCD and working to be a better person