@Test public void testPlatformTransactionManagerForHighLevel() throws Exception { DefaultTransactionDefinition definition = new DefaultTransactionDefinition(); definition.setIsolationLevel(TransactionDefinition.ISOLATION_READ_COMMITTED); definition.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED); TransactionStatus transactionStatus = platformTransactionManager.getTransaction(definition); jdbcTemplate.execute("CREATE TABLE if not EXISTS test(id int NOT NULL AUTO_INCREMENT, PRIMARY KEY(id),name varchar(15))"); try { jdbcTemplate.update(TransactionSQLUtils.INSERT_SQL, "test"); platformTransactionManager.commit(transactionStatus); Assert.assertEquals(1, jdbcTemplate.queryForList(TransactionSQLUtils.COUNT_SQL).size()); } catch (DataAccessException e) { e.printStackTrace(); platformTransactionManager.rollback(transactionStatus); } }
public void platformTransactionManagerForHighLevel() { }
PlatformTransactionManagerBean { public void platformTransactionManagerForHighLevel() { } }
PlatformTransactionManagerBean { public void platformTransactionManagerForHighLevel() { }  }
PlatformTransactionManagerBean { public void platformTransactionManagerForHighLevel() { }  void platformTransactionManagerForHighLevel(); void platformTransactionManagerForLowLevel(); }
PlatformTransactionManagerBean { public void platformTransactionManagerForHighLevel() { }  void platformTransactionManagerForHighLevel(); void platformTransactionManagerForLowLevel();  }