LockType is a type safe enumeration of all lock types. Methods on LockType
objects can be used to determine whether a type conflicts with another
type or can be upgraded to another type.
getConflict(LockType requestedType) Returns the LockConfict that results when this lock type is held and the
given lock type is requested by another locker.
getUpgrade(LockType requestedType) Returns the LockUpgrade that results when this lock type is held and the
given lock type is requested by the same locker.
final public boolean
isWriteLock() Returns true if this is a WRITE or RANGE_WRITE lock.
Returns true if this is a WRITE or RANGE_WRITE lock. For RANGE_INSERT,
false is returned because RANGE_INSERT is used to lock the key following
the insertion key, not the insertion key itself.