Package org.apache.derby.iapi.store.raw
Class RowLock
java.lang.Object
org.apache.derby.iapi.store.raw.RowLock
A RowLock represents a qualifier that is to be used when
locking a Row through a RecordHandle.
MT - Immutable
MT - Immutable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Bit mask which represents the lock types that are compatible with this lock type.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private static final boolean[][]
Row lock compatibility table.static final int
Number of row locks.static final RowLock
static final RowLock
static final RowLock
static final RowLock
static final RowLock
static final RowLock
static final RowLock
static final RowLock
private static final String[]
private final int
Integer representation of the type of the lock.private final int
Bit mask with one bit set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Get an integer representation of the type of the lock.boolean
isCompatible
(RowLock granted) toString()
-
Field Details
-
type
private final int typeInteger representation of the type of the lock. -
typeBit
private final int typeBitBit mask with one bit set. The position of the bit tells the type of the lock. -
compat
private final int compatBit mask which represents the lock types that are compatible with this lock type. -
shortnames
-
R_NUMBER
public static final int R_NUMBERNumber of row locks.- See Also:
-
R_COMPAT
private static final boolean[][] R_COMPATRow lock compatibility table. -
RS2
-
RS3
-
RU2
-
RU3
-
RIP
-
RI
-
RX2
-
RX3
-
DIAG_INDEX
- See Also:
-
DIAG_XACTID
- See Also:
-
DIAG_LOCKTYPE
- See Also:
-
DIAG_LOCKMODE
- See Also:
-
DIAG_CONGLOMID
- See Also:
-
DIAG_CONTAINERID
- See Also:
-
DIAG_SEGMENTID
- See Also:
-
DIAG_PAGENUM
- See Also:
-
DIAG_RECID
- See Also:
-
DIAG_COUNT
- See Also:
-
DIAG_GROUP
- See Also:
-
DIAG_STATE
- See Also:
-
-
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
-
toString
-