/* 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 ()); } }