|
From: =?iso-8859-1?Q?<jp....@ti...> - 2003-07-12 10:05:38
|
Hi Ken, Thomas, Rod,=0D=0A=0D=0AIt seems be a general miscomprehension.=0D= =0A=0D=0A1) I have no intend to put any dependency between WEB and JDBC.=0D= =0AMy request is only at being able to add an optional 'Object' supplemen= tal attribute in execute method. The intend of this attribute is simply t= o be passed on rowmap.=0D=0A=0D=0A2) Why cannot this object be passed sim= ply on the current methods?=0D=0AJust because JDBC has nothing to do with= . It is only for rowmap method as this method is responsible for creating= (business) objects.=0D=0A=0D=0A3) Typical example: =0D=0ASearching adres= ses. =0D=0A=0D=0Aa)Consider the searched adresses are not localized on th= e database and contain a country information.=0D=0A=0D=0Ab)The database c= ontain only the country code of the address.=0D=0A=0D=0Ac)With this count= ry code is read from the database, the rowmap method will have to create = a Country Object to put in the Address one. This Country object will have= a name property matching with the current user to serve and has nothing = to do with the JDBC record.=0D=0A=0D=0AFor creating the correct Country O= bject, rowmap has to know the Locale to serve. In this case the new 'Obje= ct' parameter would be filled with the User Locale and casted so in rowma= p. But in others cases, it could be another information as the Locale.=0D= =0A=0D=0AThe main need is:=0D=0AROWMAP IS RESPONSIBLE FOR CREATING OBJECT= S AND FOR THIS IT CAN HAVE TO KNOW OTHER INFORMATION AS JUST THESE READ I= N THE DATABASE.=0D=0A=0D=0AThis other information can be just right durin= g the 'execution' call and cannot be in this case an instance variable. =0D= =0A=0D=0A=0D=0ARegards,=0D=0AJean-Pierre=0D=0A=0D=0A---------- Initial He= ader -----------=0D=0A=0D=0AFrom : "Rod Johnson" <rod.johnson@interf= ace21.com>=0D=0ATo : <tri...@tr...>, "Ken Krebs" <kk@kktec= .com>=0D=0ACc : "JP Pawlak" <jp....@ti...>, "'spri= ngframework-developer'" <spr...@li...>= =0D=0ADate : Thu, 10 Jul 2003 17:55:12 +0100=0D=0ASubject : Re: [Spr= ingframework-developer] Locale in rowmap?=0D=0A=0D=0A> I would agree with= Ken here - we must avoid any dependencies between the=0D=0AJDBC=0D=0A> f= ramework and the Web framework.=0D=0A=0D=0A+1. I know of several companie= s in the UK using JDBC only at this point.=0D=0AIt's a great route in for= Spring.=0D=0A=0D=0A=0D=0A=0A=0A********** L'ADSL A 20 EUR/MOIS**********= =0ATiscali propose l'ADSL le moins cher du march=E9 : 20 EUR/mois et le m= odem ADSL offert ! =0APour profiter de cette offre exceptionnelle, clique= z ici : http://register.tiscali.fr/adsl/=0AOffre soumise =E0 conditions.=0A= |