1 16 17 package org.springframework.transaction.interceptor; 18 19 import org.springframework.transaction.support.DefaultTransactionDefinition; 20 21 28 public class DefaultTransactionAttribute extends DefaultTransactionDefinition implements TransactionAttribute { 29 30 39 public DefaultTransactionAttribute() { 40 super(); 41 } 42 43 51 public DefaultTransactionAttribute(TransactionAttribute other) { 52 super(other); 53 } 54 55 64 public DefaultTransactionAttribute(int propagationBehavior) { 65 super(propagationBehavior); 66 } 67 68 69 74 public boolean rollbackOn(Throwable ex) { 75 return (ex instanceof RuntimeException || ex instanceof Error ); 76 } 77 78 } 79 | Popular Tags |