‏إظهار الرسائل ذات التسميات JAVA. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات JAVA. إظهار كافة الرسائل

الثلاثاء، 10 أبريل 2012

Call Oracle Stored Function using CallableStatement through Oracle JDBC Pool Recource

Call Oracle Stored Function using CallableStatement through Oracle JDBC Pool Recource

The Oracle PL/SQL language allows you to write functions and procedure to centralize the business logic and store the code in the database. This business logic may be call in many different ways including from a Glassfish Server's JDBC Pool Connection Resource.

There are five steps involved in calling a PL/SQL Function from within a application:
  1. Create and prepare a JDBC CallableStatement object that contains a call to your PL/SQL function.
  2. Register the output parameter for your PL/SQL function.
  3. Provide all of the required parameter values to your PL/SQL function.
  4. Call the execute() method for your CallableStatement object, which then performs the call to your PL/SQL procedure.
  5. Read the returned value from your PL/SQL function.

Text

مازلتـ أهوى رفقة اللحن الذى ينأى بقلبى . . كلما هد الفؤاد برقة
حتى ارتمى فى صدر . . حزن شده حلم جميل :)

إجمالي مرات مشاهدة الصفحة

Blog Archive

Followers