ObjectDB ObjectDB

setTransactionIsolationLevel(level) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
void setTransactionIsolationLevel(
  String level
)

Set the value for transaction isolation level for this PMF. Transaction isolation levels are defined in javax.jdo.Constants. If the requested level is not available, but a higher level is available, the higher level is silently used. If the requested level is not available, and no higher level is available, then JDOUnsupportedOptionException is thrown. Standard values in order from low to high are:
  • read-uncommitted
  • read-committed
  • repeatable-read
  • snapshot
  • serializable
Parameters:
level - the transaction isolation level
Since:
JDO 2.2
See Also:
getTransactionIsolationLevel()
Constants.TX_READ_UNCOMMITTED
Constants.TX_READ_COMMITTED
Constants.TX_REPEATABLE_READ
Constants.TX_SNAPSHOT
Constants.TX_SERIALIZABLE