1 16 17 package org.springframework.aop.framework.autoproxy; 18 19 import org.springframework.transaction.interceptor.TransactionInterceptor; 20 21 22 23 27 public class Rollback { 28 29 34 public void rollbackOnly(boolean rollbackOnly) { 35 if (rollbackOnly) { 36 setRollbackOnly(); 37 } 38 } 39 40 43 protected void setRollbackOnly() { 44 TransactionInterceptor.currentTransactionStatus().setRollbackOnly(); 45 } 46 47 52 public void echoException(Exception ex) throws Exception { 53 if (ex != null) 54 throw ex; 55 } 56 57 } 58 | Popular Tags |