com.j_spaces.core.client
Class ReadTakeModifiers

java.lang.Object
  extended by com.j_spaces.core.client.ReadTakeModifiers

public class ReadTakeModifiers
extends Object

The Modifier class provides static methods and constants to decode ReadTake types modifiers. The sets of modifiers are represented as integers with distinct bit positions representing different modifiers.


Field Summary
static int DIRTY_READ
          The int value representing the Dirty_Read modifier.
static int EXCLUSIVE_READ_LOCK
          The int value representing the Exclusive_Read_Lock modifier.
 
Constructor Summary
ReadTakeModifiers()
           
 
Method Summary
static boolean isDirtyRead(int mod)
          Return true if the integer argument includes the Dirty_Read modifier, false otherwise.
static boolean isExclusiveReadLock(int mod)
          Return true if the integer argument includes the EXCLUSIVE_READ_LOCK modifier, false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRTY_READ

public static final int DIRTY_READ
The int value representing the Dirty_Read modifier.
When set: dirty read is used.

See Also:
Constant Field Values

EXCLUSIVE_READ_LOCK

public static final int EXCLUSIVE_READ_LOCK
The int value representing the Exclusive_Read_Lock modifier.
When set: Exclusive read lock is used.

See Also:
Constant Field Values
Constructor Detail

ReadTakeModifiers

public ReadTakeModifiers()
Method Detail

isDirtyRead

public static boolean isDirtyRead(int mod)
Return true if the integer argument includes the Dirty_Read modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the public modifier; false otherwise.

isExclusiveReadLock

public static boolean isExclusiveReadLock(int mod)
Return true if the integer argument includes the EXCLUSIVE_READ_LOCK modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the public modifier; false otherwise.