SCJP, OCMJD, OCMJEA
Otherwise when sb. other create record it could be yet locked
SCJP, OCMJD, OCMJEA
However if delete method unlocks the record, than following scenarion would be forbidden:
A: cookieA = lock(3)
A: delete(3, cookieA)
A: unlock(3, cookieA) //exception here (security or not found)
B: create() //here if unlocked by delete B could obtain recNo
SCJP, OCMJD, OCMJEA
SCJP, SCJD, SCEA
42
42
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|