public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
/** * Visits the end of the annotation. <br> * Creates the object and store it. */ @Override public void visitEnd() { String s = getValue(); // TYPE annotation if (getAnnotationMetadata() != null) { if (MANDATORY.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(MANDATORY); } else if (REQUIRED.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(REQUIRED); } else if (REQUIRES_NEW.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(REQUIRES_NEW); } else if (SUPPORTS.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(SUPPORTS); } else if (NOT_SUPPORTED.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(NOT_SUPPORTED); } else if (NEVER.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(NEVER); } else { // set default getAnnotationMetadata().setTransactionAttributeType(REQUIRED); } } }
/** * Visits the end of the annotation. <br> * Creates the object and store it. */ @Override public void visitEnd() { String s = getValue(); // TYPE annotation if (getAnnotationMetadata() != null) { if (MANDATORY.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(MANDATORY); } else if (REQUIRED.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(REQUIRED); } else if (REQUIRES_NEW.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(REQUIRES_NEW); } else if (SUPPORTS.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(SUPPORTS); } else if (NOT_SUPPORTED.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(NOT_SUPPORTED); } else if (NEVER.name().equals(s)) { getAnnotationMetadata().setTransactionAttributeType(NEVER); } else { // set default getAnnotationMetadata().setTransactionAttributeType(REQUIRED); } } }