1 16 17 package org.springframework.transaction.interceptor; 18 19 28 public abstract class DelegatingTransactionAttribute implements TransactionAttribute { 29 30 private final TransactionAttribute targetAttribute; 31 32 33 37 public DelegatingTransactionAttribute(TransactionAttribute targetAttribute) { 38 this.targetAttribute = targetAttribute; 39 } 40 41 42 public int getPropagationBehavior() { 43 return this.targetAttribute.getPropagationBehavior(); 44 } 45 46 public int getIsolationLevel() { 47 return this.targetAttribute.getIsolationLevel(); 48 } 49 50 public int getTimeout() { 51 return this.targetAttribute.getTimeout(); 52 } 53 54 public boolean isReadOnly() { 55 return this.targetAttribute.isReadOnly(); 56 } 57 58 public String getName() { 59 return this.targetAttribute.getName(); 60 } 61 62 public boolean rollbackOn(Throwable ex) { 63 return this.targetAttribute.rollbackOn(ex); 64 } 65 66 67 public boolean equals(Object obj) { 68 return this.targetAttribute.equals(obj); 69 } 70 71 public int hashCode() { 72 return this.targetAttribute.hashCode(); 73 } 74 75 public String toString() { 76 return this.targetAttribute.toString(); 77 } 78 79 } 80 | Popular Tags |