David
From: Dan Allen <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: design concern Date: Sat, 15 Mar 2003 19:51:50 -0600
David Graham ([EMAIL PROTECTED]) wrote:
> >I have one design concern. In our project we have ejb's. Now in some
> >modules i have only the some sql quries to be executed based on the user
> >search condition. here where should i prepare the sql queries. should i
> >create in Action class or session bean.
You should create a search "interface" on your business layer that can take generic filters and will interpret them into actual business queries, whether they be XPath, SQL or some other data service. You can really do it however you like, either the simple route of creating overloaded methods called search() or a series of methods that talk about the filters you want to setup.
Dan
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Real programmers don't change their wardrobe too often: there are no clothes stores that are open at two o'clock in the morning. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

