Top Description Fields Constructors Methods
org.apache.derby.iapi.store.raw

public final Class RowLock

extends Object
Class Inheritance

A RowLock represents a qualifier that is to be used when locking a Row through a RecordHandle.
MT - Immutable
See Also
RecordHandle, LockingPolicy

Field Summary

Modifier and TypeField and Description
private final int
compat

Bit mask which represents the lock types that are compatible with this lock type.

public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
private static final boolean[][]
R_COMPAT

Row lock compatibility table.

public static final int
R_NUMBER

Number of row locks.

public static final RowLock
public static final RowLock
public static final RowLock
public static final RowLock
public static final RowLock
public static final RowLock
public static final RowLock
public static final RowLock
private static final String[]
private final int
type

Integer representation of the type of the lock.

private final int
typeBit

Bit mask with one bit set.

Constructor Summary

AccessConstructor and Description
private
RowLock(int type)

Method Summary

Modifier and TypeMethod and Description
public int
getType()

Get an integer representation of the type of the lock.

public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

compatback to summary
private final int compat

Bit mask which represents the lock types that are compatible with this lock type.

DIAG_CONGLOMIDback to summary
public static final String DIAG_CONGLOMID
DIAG_CONTAINERIDback to summary
public static final String DIAG_CONTAINERID
DIAG_COUNTback to summary
public static final String DIAG_COUNT
DIAG_GROUPback to summary
public static final String DIAG_GROUP
DIAG_INDEXback to summary
public static final String DIAG_INDEX
DIAG_LOCKMODEback to summary
public static final String DIAG_LOCKMODE
DIAG_LOCKTYPEback to summary
public static final String DIAG_LOCKTYPE
DIAG_PAGENUMback to summary
public static final String DIAG_PAGENUM
DIAG_RECIDback to summary
public static final String DIAG_RECID
DIAG_SEGMENTIDback to summary
public static final String DIAG_SEGMENTID
DIAG_STATEback to summary
public static final String DIAG_STATE
DIAG_XACTIDback to summary
public static final String DIAG_XACTID
R_COMPATback to summary
private static final boolean[][] R_COMPAT

Row lock compatibility table.

R_NUMBERback to summary
public static final int R_NUMBER

Number of row locks.

RIback to summary
public static final RowLock RI
RIPback to summary
public static final RowLock RIP
RS2back to summary
public static final RowLock RS2
RS3back to summary
public static final RowLock RS3
RU2back to summary
public static final RowLock RU2
RU3back to summary
public static final RowLock RU3
RX2back to summary
public static final RowLock RX2
RX3back to summary
public static final RowLock RX3
shortnamesback to summary
private static final String[] shortnames
typeback to summary
private final int type

Integer representation of the type of the lock.

typeBitback to summary
private final int typeBit

Bit mask with one bit set. The position of the bit tells the type of the lock.

Constructor Detail

RowLockback to summary
private RowLock(int type)

Method Detail

getTypeback to summary
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.

isCompatibleback to summary
public boolean isCompatible(RowLock granted)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object