javax.ejb

Interface TransactionAttribute

public interface TransactionAttribute

The transaction attribute annotation.

Method Summary

TransactionAttributeType
value()

Method Details

value

public TransactionAttributeType value()
            throws javax.ejb.TransactionAttributeType.REQUIRED
Usages and Demos :

View More Examples of value()
   1: 
   2: import javax.ejb.TransactionAttribute;
   3: 
   4:         ...
   5: 
   6:     private Map<Method, TransactionAttribute> transactionalMethodAttributes = new HashMap<Method, TransactionAttribute>();
   7: 
   8:         ...
   9:         if (ejbTxAttribute != null)
  10:             springTxAttribute.setPropagationBehaviorName("PROPAGATION_" + ejbTxAttribute.value().name());
  11:         return springTxAttribute;

View Full Code Here
   1:     
   2:     TransactionAttribute xaAttr;
   3:     
   4:         ...
   5:     xaAttr = apiMethod.getAnnotation(TransactionAttribute.class);
   6: 
   7:         ...
   8:     if (xaAttr == null) {
   9:       xaAttr = (TransactionAttribute)
  10:     apiClass.getAnnotation(TransactionAttribute.class);
  11:         ...
  12:     if (xaAttr != null)
  13:       setTransactionType(xaAttr.value());

View Full Code Here
   1:       if (local != null) {
   2:         Object []values = local.value();
   3: 
   4:         ...
   5:       if (remote != null) {
   6:         Object []values = remote.value();
   7: 
   8:         ...
   9: 
  10:       TransactionAttribute xa = type.getAnnotation(TransactionAttribute.class);
  11:       if (xa != null) {
  12:         ...
  13:     for (ApiMethod method : type.getMethods()) {
  14:       TransactionAttribute xa

View Full Code Here