code: public boolean isModLockMode()
      {
          Record record = this.getOwner();
          if (record != null)
              if ((record.getOpenMode() & DBConstants.OPEN_LAST_MOD_LOCK_TYPE) == DBConstants.OPEN_LAST_MOD_LOCK_TYPE)
                  return true;
          return false;
      }
docs: Am I checking for modification locks?
  @return True if I am.