1 /*
2 * $Id: DerbyStoredProc.java 11728 2008-05-13 07:31:11Z dirk.olmes $
3 * --------------------------------------------------------------------------------------
4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10
11 package org.mule.providers.jdbc;
12
13
14 public class DerbyStoredProc
15 {
16 public static void plus(int a, int[] b, double[] c, String[] str)
17 {
18 /*
19 // You can use any SQL statements in this method. Example:
20 try
21 {
22 Connection conn = DriverManager.getConnection("jdbc:default:connection");
23 PreparedStatement statement = conn.prepareStatement("SELECT * FROM TEST");
24 ResultSet rset = statement.executeQuery();
25 //....
26 rset.close();
27 statement.close();
28 }
29 catch (SQLException ex)
30 {
31
32 }
33 */
34 c[0] = a + b[0] + 0.3;
35 b[0] = 10;
36 str[0] = "test";
37 }
38 }