MINI
C:
/
app
/
Administrator
/
product
/
11.2.0
/
dbhome_1
/
javavm
/
demo
/
examples
/
jsproc
/
basic
/
objbyref
/
Upload File:
files >> C:/app/Administrator/product/11.2.0/dbhome_1/javavm/demo/examples/jsproc/basic/objbyref/Client.java
/* This is the sample client of the EmployeeByRef stored procedure */ public class Client { public static void main (String args[]) throws Exception { if (args.length > 2) { System.out.println ("usage: Client [username [password]]"); System.exit (1); } String username = args.length > 0 ? args [0] : "scott"; String password = args.length > 1 ? args [1] : "tiger"; EmployeeClientObject emp = new EmployeeClientObject("jdbc:oracle:oci8:@",username,password,true); System.out.println ("Getting employee number 7788"); emp.getEmployee (7788); System.out.println ("Employee 7788 has a salary of " + emp.salary ()); emp.raise (10); System.out.println ("Employee 7788 has a salary of " + emp.salary ()); emp.update (); emp.getEmployee (7788); System.out.println ("Employee 7788 has a salary of " + emp.salary ()); } }
Copyright ©2021 || Defacer Indonesia