int function ( ) { return activeTransactionDepthForCurrentThread . get ( ) ; }
method to read the current transaction depth . if the returned value is 0 , the code is not running in a transaction , for 1 we are running in a main transaction , for higher values the code is running in a nested transaction . concode_field_sep Boolean transactionsAvailable concode_elem_sep ThreadLocal<Integer> activeTransactionDepthForCurrentThread concode_field_sep boolean isTransactionActiveForCurrentThread concode_elem_sep Integer initialValue concode_elem_sep boolean areTransactionsSupported concode_elem_sep T runInDbTransaction