polishing

This commit is contained in:
Juergen Hoeller 2009-05-12 23:53:45 +00:00
parent 0471d5d3ea
commit b0ed6d5685
2 changed files with 15 additions and 1 deletions

View File

@ -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
}
/**
* 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;
}

View File

@ -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();
/**