Package org.openspaces.core
Class IsolationLevelHelpers
java.lang.Object
org.openspaces.core.IsolationLevelHelpers
Utility methods to handle conversions between different isolation level representations.
- Since:
- 9.5
- Author:
- Dan Kilman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intconvertSpringToSpaceIsolationLevel(int springIsolationLevel, int defaultValue) static IsolationLevelModifiersfromSpringIsolationLevel(Integer springIsolationLevel) Converts a Spring Isolation Level to a GigaSpaces XAP IsolationLevelModifiers.static CountModifierstoCountModifiers(int isolationLevel) static ReadModifierstoReadModifiers(int isolationLevel) static inttoSpringIsolationLevel(IsolationLevelModifiers modifiers) Converts a GigaSpaces XAP IsolationLevelModifiers to a Spring Isolation Level
-
Constructor Details
-
IsolationLevelHelpers
public IsolationLevelHelpers()
-
-
Method Details
-
toSpringIsolationLevel
Converts a GigaSpaces XAP IsolationLevelModifiers to a Spring Isolation Level- Parameters:
modifiers- GigaSpaces XAP IsolationLevelModifiers- Returns:
- Spring Isolation Level
-
fromSpringIsolationLevel
Converts a Spring Isolation Level to a GigaSpaces XAP IsolationLevelModifiers.- Parameters:
springIsolationLevel- Spring Isolation Level- Returns:
- GigaSpaces XAP IsolationLevelModifiers
-
convertSpringToSpaceIsolationLevel
public static int convertSpringToSpaceIsolationLevel(int springIsolationLevel, int defaultValue) - Parameters:
springIsolationLevel- the spring isolation level as defined inTransactionDefinition.defaultValue- The modifiers to use in case springIsolationLevel equalsTransactionDefinition.ISOLATION_DEFAULT- Returns:
- A matcing GigaSpaces isolation level modifier.
- See Also:
-
TransactionDefinitionReadModifiersCountModifiers
-
toReadModifiers
- Parameters:
isolationLevel- The isolation level code number.- Returns:
- a
ReadModifiersinstance representing the isolationLevel parameter
-
toCountModifiers
- Parameters:
isolationLevel- The isolation level code number.- Returns:
- a
CountModifiersinstance representing the isolationLevel parameter
-