public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
@Override protected TransactionAttributeType fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { final AnnotationValue value = annotationInstance.value(); if(value == null) { return TransactionAttributeType.REQUIRED; } return TransactionAttributeType.valueOf(value.asEnum()); } }
private TransAttribute cast(final TransactionAttributeType transactionAttributeType) { return TransAttribute.valueOf(transactionAttributeType.toString()); } }
if (txType.equals(TransactionAttributeType.NEVER)) else if (txType.equals(TransactionAttributeType.REQUIRED)) else if (txType.equals(TransactionAttributeType.REQUIRES_NEW)) else if(txType.equals(TransactionAttributeType.NOT_SUPPORTED)) else if(txType.equals(TransactionAttributeType.MANDATORY)) else if(txType.equals(TransactionAttributeType.SUPPORTS))
private TransAttribute cast(final TransactionAttributeType transactionAttributeType) { return TransAttribute.valueOf(transactionAttributeType.toString()); } }
xa = method.getDeclaringType().getAnnotation(TransactionAttribute.class); if (xa != null && REQUIRED.equals(xa.value())) { addXaMethods(out, method.getJavaMember());
public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
@Override protected TransactionAttributeType fromAnnotation(final AnnotationInstance annotationInstance) { final AnnotationValue value = annotationInstance.value(); if(value == null) { return TransactionAttributeType.REQUIRED; } return TransactionAttributeType.valueOf(value.asEnum()); } }
private TransAttribute cast(TransactionAttributeType transactionAttributeType) { return TransAttribute.valueOf(transactionAttributeType.toString()); } }
public Ejb3TransactionAttribute(TransactionAttributeType type) { setPropagationBehaviorName(PREFIX_PROPAGATION + type.name()); }
TransactionAttributeType.valueOf(annotation2.value().name()) : annotation.value()); beanContext.getMethodContext(method) .setTransactionType(
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); } } }