spring-framework / org.springframework.jdbc.datasource / IsolationLevelDataSourceAdapter / setIsolationLevelName

setIsolationLevelName

fun setIsolationLevelName(constantName: String): Unit

Set the default isolation level by the name of the corresponding constant in org.springframework.transaction.TransactionDefinition, e.g. "ISOLATION_SERIALIZABLE".

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.

Parameters

constantName - name of the constant

See Also
org.springframework.transaction.TransactionDefinition#ISOLATION_READ_UNCOMMITTEDorg.springframework.transaction.TransactionDefinition#ISOLATION_READ_COMMITTEDorg.springframework.transaction.TransactionDefinition#ISOLATION_REPEATABLE_READorg.springframework.transaction.TransactionDefinition#ISOLATION_SERIALIZABLE#setIsolationLevel