On Mon, 17 Mar 2003 16:21:37 -0500 Vic Cekvenich <[EMAIL PROTECTED]> wrote: > For each bean, you extend the BasicDAOImpl, for you concreate DAO > helper.
Ok, so the BasicDAOImpl is the 'helper' that you are talking about. Since you mentioned this is wrong: > DAOhelper extends BasicDAOImpl > > public String getProperty(String property) throws SQLException { > String result = null; > Object obj = _rs.getString(property); > > if ( property == Constants.ANNUAL_SALARY ) { > result = SomeObject.calculateSalaryPerWeek( obj.toString() ); > } > else { > result = super.getProperty( property ); > } > return result; > } > > and then a similar setProperty method overriding the base > BasicDAOImpl's setProperty(). > If the above is wrong, where then in BasicDAOImpl would the conversion be done to transform annualSalary into salaryPerWeek? Also you mention: > BaseDAOImpl stores reusable parts that are common to all concreate > DAO's thus name is Base. Right that makes sense, but then you seem to be saying that BaseDAOImpl (the helper) would take care of something specific like a conversion of annualSalary to salaryPerMonth? That's such as specific thing why wouldn't that be moved somewhere else (like the adapater class that I created above..or maybe even moved directly into the main DAO that extends BaseDAOImpl. Can you give an example of what class and where in that class (what method) would take care of doing a conversion like above? Thanks, -- Rick Reumann _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers