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?
Chris,
I personally think this is the best approach. Think of the application task:
1). Is it easier to perform Database Processing within PL/SQL than within
Java? PL/SQL is a very strong development tool. Code development and
maintenance-wise, I think it is much easier to do all the work in PL/SQL
rather than in Java.
2). DB Tuning wise, this forces the application to always use bind variables
- a very good thing.
3). Finally, it forces an application model to work in an n-tier model
where Java is doing the presentation (making pretty pictures & interfacing
with the db), and the database is doing what it does best - process the data
within the db engine. Remember, of all the computers in the mix, the db
server is usually the strongest machine of the bunch - why not take
advantage of that power and make it do the db work.
Just my 2 cents.
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Monday, January 14, 2002 10:10 AM
To: Multiple recipients of list ORACLE-L
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).
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