Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Using procedures instead of coding update/insert SQL...huh?
We used it at a former site. The idea is, this makes the JAVA code totally reusable if you end up changing database servers. All you would have to do is change the underlying insert and update procedures and recompile the application code.
I can see a use for it even if you aren't changing databases.... If you use a standard routine, then the SQL statements will always be identical,and you don't have to worry about shared pool problems
rachel
--- "Grabowy, Chris" <cgrabowy_at_fcg.com> wrote:
> I just joined a new Oracle/Java project using Tomcat app server. On
> this
> project they decided to create an update procedure and insert
> procedure for
> every table. This procedure is then called in the Java code with the
> appropriate parameters passed, instead of simply coding the UPDATE or
> INSERT
> SQL directly in Java.
>
> Does anyone else take this approach? I'm trying to understand the
> pros vs
> cons of this approach.
>
> TIA!!!
>
> Chris
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Grabowy, Chris
> INET: cgrabowy_at_fcg.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing
> Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rachel Carmichael INET: wisernet100_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jan 14 2002 - 10:52:11 CST