Browse Source

polishing

conversation
Juergen Hoeller 16 years ago
parent
commit
b0ed6d5685
  1. 10
      org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java
  2. 6
      org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java

10
org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2006 the original author or authors.
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -69,10 +69,18 @@ public class DefaultTransactionAttribute extends DefaultTransactionDefinition im @@ -69,10 +69,18 @@ public class DefaultTransactionAttribute extends DefaultTransactionDefinition im
}
/**
* Associate a qualifier value with this transaction attribute.
* <p>This may be used for choosing a corresponding transaction manager
* to process this specific transaction.
*/
public void setQualifier(String qualifier) {
this.qualifier = qualifier;
}
/**
* Return a qualifier value associated with this transaction attribute.
*/
public String getQualifier() {
return this.qualifier;
}

6
org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java

@ -24,12 +24,18 @@ import org.springframework.transaction.TransactionDefinition; @@ -24,12 +24,18 @@ import org.springframework.transaction.TransactionDefinition;
* in the AOP transaction package.
*
* @author Rod Johnson
* @author Juergen Hoeller
* @since 16.03.2003
* @see DefaultTransactionAttribute
* @see RuleBasedTransactionAttribute
*/
public interface TransactionAttribute extends TransactionDefinition {
/**
* Return a qualifier value associated with this transaction attribute.
* <p>This may be used for choosing a corresponding transaction manager
* to process this specific transaction.
*/
String getQualifier();
/**

Loading…
Cancel
Save