Class TransactionIsolations

java.lang.Object
org.ofbiz.core.entity.transaction.TransactionIsolations

public class TransactionIsolations extends Object
Converts from a text
  • Method Details

    • fromString

      public static int fromString(String isolationLevel) throws IllegalArgumentException
      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

      public static String asString(int isolationLevel)
      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