Something
public java v1 · immutable public void TestInOutParams() throws Exception { CallableStatement storedProc = null; try { Connection conn = getConnection(); storedProc = conn.prepareCall("{call IsUsernameUnique(?, ?)}"); storedProc.setString(1, "john"); storedProc.registerOutParameter(2, Types.INTEGER); boolean bret = storedProc.execute(); System.out.println(bret); System.out.println((int)storedProc.getInt(2)); } catch { } }