|
From: Thomas R. <tri...@tr...> - 2003-05-12 02:50:44
|
I have gone ahead and renamed the ManualExtractionSqlQuery and ManualExtractionSqlQueryWithParameters to MappingSqlQuery and MappingSqlQueryWithParameters respectively. When you use these classes you must override mapRow() instead of extract(). Otherwise everything works the same. I left the old classes marked as deprecated. Old code will still work. ManualExtractionSqlQueryWithParameters now extends MappingSqlQueryWithParameters so they both execute the same code. Could not find tests for these classes, but I will try to add some in the near future. Thomas > And once more for the list! > > > > Speaking of the ManualExtractionSqlQuery -- is there any chance that we > > > could rename this class to maybe MappingSqlQuery or something similar? > > > The current name makes it sound like there is a lot of manual work > > > involved in extracting some data from the database. In reality, it is > > > an elegant way of mapping your row data to Java classes, and I think the > > > name should reflect this. If we also renamed the extract() to mapRow(), > > > then that would in my mind make everything much clearer. Any thoughts > > > on this? > > > > This is a good point. I've no objection. Is everyone happy with Thomas's > > proposed name? > > > > R > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > -- Thomas Risberg tri...@tr... |