public class IsolationLevelHelpers extends Object
Constructor and Description |
---|
IsolationLevelHelpers() |
Modifier and Type | Method and Description |
---|---|
static int |
convertSpringToSpaceIsolationLevel(int springIsolationLevel,
int defaultValue) |
static IsolationLevelModifiers |
fromSpringIsolationLevel(Integer springIsolationLevel)
Converts a Spring Isolation Level to a GigaSpaces XAP IsolationLevelModifiers.
|
static CountModifiers |
toCountModifiers(int isolationLevel) |
static ReadModifiers |
toReadModifiers(int isolationLevel) |
static int |
toSpringIsolationLevel(IsolationLevelModifiers modifiers)
Converts a GigaSpaces XAP IsolationLevelModifiers to a Spring Isolation Level
|
public static int toSpringIsolationLevel(IsolationLevelModifiers modifiers)
modifiers
- GigaSpaces XAP IsolationLevelModifierspublic static IsolationLevelModifiers fromSpringIsolationLevel(Integer springIsolationLevel)
springIsolationLevel
- Spring Isolation Levelpublic static int convertSpringToSpaceIsolationLevel(int springIsolationLevel, int defaultValue)
springIsolationLevel
- the spring isolation level as defined in TransactionDefinition
.defaultValue
- The modifiers to use in case springIsolationLevel equals TransactionDefinition.ISOLATION_DEFAULT
TransactionDefinition
,
ReadModifiers
,
CountModifiers
public static ReadModifiers toReadModifiers(int isolationLevel)
isolationLevel
- The isolation level code number.ReadModifiers
instance representing the isolationLevel parameterpublic static CountModifiers toCountModifiers(int isolationLevel)
isolationLevel
- The isolation level code number.CountModifiers
instance representing the isolationLevel parameterCopyright © GigaSpaces.