|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> store >> [ raw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.store.raw
Class RowLock

java.lang.Objectorg.apache.derby.iapi.store.raw.RowLock
- public final class RowLock
- extends java.lang.Object
A RowLock represents a qualifier that is to be used when
locking a Row through a RecordHandle.
MT - Immutable
| Field Summary | |
static java.lang.String |
DIAG_CONGLOMID
|
static java.lang.String |
DIAG_CONTAINERID
|
static java.lang.String |
DIAG_COUNT
|
static java.lang.String |
DIAG_GROUP
|
static java.lang.String |
DIAG_INDEX
|
static java.lang.String |
DIAG_LOCKMODE
|
static java.lang.String |
DIAG_LOCKTYPE
|
static java.lang.String |
DIAG_PAGENUM
|
static java.lang.String |
DIAG_RECID
|
static java.lang.String |
DIAG_SEGMENTID
|
static java.lang.String |
DIAG_STATE
|
static java.lang.String |
DIAG_XACTID
|
static boolean[][] |
R_COMPAT
Row lock compatability table |
static int |
R_NUMBER
Number of row locks |
static RowLock |
RI
|
static RowLock |
RIP
|
static RowLock |
RS2
|
static RowLock |
RS3
|
static RowLock |
RU2
|
static RowLock |
RU3
|
static RowLock |
RX2
|
static RowLock |
RX3
|
private static java.lang.String[] |
shortnames
|
private int |
type
|
| Constructor Summary | |
private |
RowLock(int type)
|
| Method Summary | |
int |
getType()
Get an integer representation of the type of the lock. |
boolean |
isCompatible(int granted)
|
boolean |
isCompatible(RowLock granted)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
type
private final int type
shortnames
private static java.lang.String[] shortnames
RS2
public static final RowLock RS2
RS3
public static final RowLock RS3
RU2
public static final RowLock RU2
RU3
public static final RowLock RU3
RIP
public static final RowLock RIP
RI
public static final RowLock RI
RX2
public static final RowLock RX2
RX3
public static final RowLock RX3
R_NUMBER
public static final int R_NUMBER
- Number of row locks
- See Also:
- Constant Field Values
R_COMPAT
public static final boolean[][] R_COMPAT
- Row lock compatability table
DIAG_INDEX
public static final java.lang.String DIAG_INDEX
- See Also:
- Constant Field Values
DIAG_XACTID
public static final java.lang.String DIAG_XACTID
- See Also:
- Constant Field Values
DIAG_LOCKTYPE
public static final java.lang.String DIAG_LOCKTYPE
- See Also:
- Constant Field Values
DIAG_LOCKMODE
public static final java.lang.String DIAG_LOCKMODE
- See Also:
- Constant Field Values
DIAG_CONGLOMID
public static final java.lang.String DIAG_CONGLOMID
- See Also:
- Constant Field Values
DIAG_CONTAINERID
public static final java.lang.String DIAG_CONTAINERID
- See Also:
- Constant Field Values
DIAG_SEGMENTID
public static final java.lang.String DIAG_SEGMENTID
- See Also:
- Constant Field Values
DIAG_PAGENUM
public static final java.lang.String DIAG_PAGENUM
- See Also:
- Constant Field Values
DIAG_RECID
public static final java.lang.String DIAG_RECID
- See Also:
- Constant Field Values
DIAG_COUNT
public static final java.lang.String DIAG_COUNT
- See Also:
- Constant Field Values
DIAG_GROUP
public static final java.lang.String DIAG_GROUP
- See Also:
- Constant Field Values
DIAG_STATE
public static final java.lang.String DIAG_STATE
- See Also:
- Constant Field Values
| Constructor Detail |
RowLock
private RowLock(int type)
| Method Detail |
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)
isCompatible
public boolean isCompatible(int granted)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> store >> [ raw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.store.raw.RowLock