@ActionKey("/interestSettlNotice") @Before({GoldFixedBuyRecordValidator.class}) public void update() { boolean b = Db.tx( new IAtom() { @Override public boolean run() throws SQLException { return false; } }); }
抛出的异常为:Notice the outer transaction that the nested transaction return false
tx(Config config, transactionLevel, IAtom atom) { Connection conn = config.getThreadLocalConnection(); (conn != ) { { (conn.getTransactionIsolation() < transactionLevel) conn.setTransactionIsolation(transactionLevel); result = atom.run(); (result) ; } (SQLException e) { ActiveRecordException(e); } }
项目:JFinal