Class RowLock

java.lang.Object
org.apache.derby.iapi.store.raw.RowLock

public final class RowLock extends Object
A RowLock represents a qualifier that is to be used when locking a Row through a RecordHandle.
MT - Immutable
See Also:
  • Field Details

  • Constructor Details

    • RowLock

      private RowLock(int type)
  • Method Details

    • getType

      public int getType()
      Get an integer representation of the type of the lock. This method is guaranteed to return an integer >= 0 and < R_NUMBER. No correlation between the value and one of the static variables (CIS etc.) is guaranteed, except that the values returned do not change.
    • isCompatible

      public boolean isCompatible(RowLock granted)
    • toString

      public String toString()
      Overrides:
      toString in class Object