Class TransactionIsolations
java.lang.Object
org.ofbiz.core.entity.transaction.TransactionIsolations
Converts from a text
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringasString(int isolationLevel) static intfromString(String isolationLevel) Returns an int that corresponds to the JDBC transaction isolation level for the given string.
-
Method Details
-
fromString
Returns an int that corresponds to the JDBC transaction isolation level for the given string.- Parameters:
isolationLevel- a String describing a transaction isolation level- Returns:
- an int describing a transaction isolation level
- Throws:
IllegalArgumentException- if the given string is not a known isolation level
-
asString
- Parameters:
isolationLevel- an int describing a transaction isolation level- Returns:
- a String representation of the given isolation level
- Throws:
IllegalArgumentException- if the given int does not correspond to a known isolation level
-