Jfinal invoking an Oracle stored procedure

Source: Internet
Author: User

public void Runcountproc () {Object o = Db.execute (new Icallback () {@Override public Object call (Connection conn) throws SQLException {callablestatement proc = Conn.preparecall ("{Call Proc_normalcount (?,?,?,?,?)}"); Proc.registeroutparameter (1, Oracletypes.varchar); Proc.registeroutparameter (2, Oracletypes.varchar); Proc.registeroutparameter (3, Oracletypes.varchar); Proc.registeroutparameter (4, Oracletypes.varchar); Proc.registeroutparameter (5, Oracletypes.varchar); Proc.execute (); The code comes here to show that your stored procedure has been successfully called, and if there is an output parameter, the next step is to take the output parameter of a process record record = new record (); The IRS has a tax source without Record.set ("Gsysyw", Proc.getobject (1)); The IRS has no tax source record.set ("Gswsyy", Proc.getobject (2)); Identification number different name of the same record.set ("SBHBTMCT", Proc.getobject (3)); Identification number same name different Record.set ("SBHTMCBT", Proc.getobject (4)); Identification number names are the same record.set ("Sbhmcxt", Proc.getobject (5)); SetAttr ("Count", record); return proc; } }); }

Jfinal invoking an Oracle stored procedure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.