If the RunTimeProperties property has . . .
|
And the property in the Connection object has . . .
|
Then the value of the property is returned from the . . .
|
Not changed
|
Not changed
|
RunTimeProperties class
|
Changed
|
Not changed
|
RunTimeProperties class
|
Not changed
|
Changed
|
Connection object
|
Changed
|
Changed
|
Connection object
|
Connection conn;
boolean ret; RunTimeProperties.setWaitIfBusy(); conn = new Connection(url, userid, password, Info); ret = conn.getBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.out.println("(A) WaitIfBusy= " + ret); RunTimeProperties.setNoWaitIfBusy(); // change static property ret = conn.getWaitIfBusy(); // equivalent accessor method System.out.println("(B) WaitIfBusy= " + ret); conn.setWaitIfBusy(); // change conn object property ret = conn.getBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.out.println("(C) WaitIfBusy= " + ret); RunTimeProperties.setBooleanProperty("PROGRESS.Session.WaitIfBusy", false); ret = conn.getWaitIfBusy(); System.out.println("(D) WaitIfBusy= " + ret); RunTimeProperties.setWaitIfBusy(); ret = conn.getBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.out.println("(E) WaitIfBusy= " + ret); |
(A) WaitIfBusy= true
(B) WaitIfBusy= false (C) WaitIfBusy= true (D) WaitIfBusy= true (E) WaitIfBusy= true |