open fun setIsolationLevel(isolationLevel: Int): Unit
Specify the default isolation level to use for Connection retrieval, according to the JDBC java.sql.Connection constants (equivalent to the corresponding Spring org.springframework.transaction.TransactionDefinition constants).
If not specified, the target DataSource's default will be used. Note that a transaction-specific isolation value will always override any isolation setting specified at the DataSource level.
See Also
java.sql.Connection#TRANSACTION_READ_UNCOMMITTEDjava.sql.Connection#TRANSACTION_READ_COMMITTEDjava.sql.Connection#TRANSACTION_REPEATABLE_READjava.sql.Connection#TRANSACTION_SERIALIZABLEorg.springframework.transaction.TransactionDefinition#ISOLATION_READ_UNCOMMITTEDorg.springframework.transaction.TransactionDefinition#ISOLATION_READ_COMMITTEDorg.springframework.transaction.TransactionDefinition#ISOLATION_REPEATABLE_READorg.springframework.transaction.TransactionDefinition#ISOLATION_SERIALIZABLEorg.springframework.transaction.TransactionDefinition#getIsolationLevel()org.springframework.transaction.support.TransactionSynchronizationManager#getCurrentTransactionIsolationLevel()