This topic has not yet been written. The content below is from the topic description.
Example 2.11. LockMode Class public class LockMode { public static final int READ; public static final int WRITE; }; public class LockStatus { public static final int LOCKFREE; public static final int LOCKHELD; public static final int LOCKRETAINED; }; public class Lock extends StateManager { public Lock (int lockMode); public boolean conflictsWith (Lock otherLock); public boolean modifiesObject (); public boolean restore_state (InputObjectState os, int ObjectType); public boolean save_state (OutputObjectState os, int ObjectType); public String type (); . . . }; The Lock class provides a modifiesObject operation which LockManager uses to determine if granting this locking request requires a call on modified. This operation is provided so that locking modes other than simple read and write can be supported. The supplied Lock class supports the traditional multiple reader/single writer policy.