public class IsolationLevelHelpers extends Object
Constructor and Description |
---|
IsolationLevelHelpers() |
Modifier and Type | Method and Description |
---|---|
static int |
convertSpringToSpaceIsolationLevel(int springIsolationLevel,
int defaultValue) |
static CountModifiers |
mergeWithIsolationLevelModifiersIfNeeded(CountModifiers modifiers,
GigaSpace gigaSpace) |
static ReadModifiers |
mergeWithIsolationLevelModifiersIfNeeded(ReadModifiers modifiers,
GigaSpace gigaSpace) |
static CountModifiers |
toCountModifiers(int isolationLevel) |
static ReadModifiers |
toReadModifiers(int isolationLevel) |
public 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}, {@link ReadModifiers}, {@link 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 parameterpublic static ReadModifiers mergeWithIsolationLevelModifiersIfNeeded(ReadModifiers modifiers, GigaSpace gigaSpace)
modifiers
- The modifiers to merge the isolation level with.gigaSpace
- The GigaSpace
instance to test the current isolation level with.public static CountModifiers mergeWithIsolationLevelModifiersIfNeeded(CountModifiers modifiers, GigaSpace gigaSpace)
modifiers
- The modifiers to merge the isolation level with.gigaSpace
- The GigaSpace
instance to test the current isolation level with.Copyright © GigaSpaces.