org.apache.derby.iapi.store.raw
Class ContainerLock
- java.lang.Object
-
- org.apache.derby.iapi.store.raw.ContainerLock
-
public final class ContainerLock extends java.lang.ObjectA ContainerLock represents a qualifier that is to be used when locking a container through a ContainerHandle.
MT - Immutable- See Also:
ContainerHandle,LockingPolicy
-
-
Field Summary
Fields Modifier and Type Field and Description static intC_NUMBERNumber of types of container locks.static ContainerLockCISContainer Intent Shared lockstatic ContainerLockCIXContainer Intent Exclusive lockstatic ContainerLockCSContainer Shared lockstatic ContainerLockCUContainer Update lockstatic ContainerLockCXContainer Exclusive lock
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetType()Get an integer representation of the type of the lock.booleanisCompatible(ContainerLock granted)java.lang.StringtoString()
-
-
-
Field Detail
-
C_NUMBER
public static final int C_NUMBER
Number of types of container locks.- See Also:
- Constant Field Values
-
CIS
public static final ContainerLock CIS
Container Intent Shared lock
-
CIX
public static final ContainerLock CIX
Container Intent Exclusive lock
-
CS
public static final ContainerLock CS
Container Shared lock
-
CU
public static final ContainerLock CU
Container Update lock
-
CX
public static final ContainerLock CX
Container Exclusive lock
-
-
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 < C_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(ContainerLock granted)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG