if (containerTransactions != null) { for (final ContainerTransactionMetaData containerTx : containerTransactions) { final TransactionAttributeType txAttr = containerTx.getTransAttribute(); final Integer timeout = timeout(containerTx); final MethodsMetaData methods = containerTx.getMethods(); if(!wildcardAttributeSet && global.getTransAttribute() != null) { for(MethodMetaData method : global.getMethods()) { final MethodIntf defaultMethodIntf = (componentDescription instanceof MessageDrivenComponentDescription) ? MethodIntf.MESSAGE_ENDPOINT : MethodIntf.BEAN; final MethodIntf methodIntf = this.getMethodIntf(method.getMethodIntf(), defaultMethodIntf); componentDescription.getTransactionAttributes().setAttribute(methodIntf, null, global.getTransAttribute());
/** * Get the transaction type * * @return the transaction type */ public byte getTransactionType() { TransactionAttributeType attribute = getDelegate().getTransAttribute(); return BeanMetaData.mapTransactionType(attribute); } }
/** * Get the transaction type * * @return the transaction type */ public byte getTransactionType() { TransactionAttributeType attribute = getDelegate().getTransAttribute(); return BeanMetaData.mapTransactionType(attribute); } }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public TransactionAttributeType getMethodTransactionType(String methodName, Class<?>[] params, MethodInterfaceType iface) { // default value TransactionAttributeType result = null; ContainerTransactionsMetaData containerTransactions = getContainerTransactions(); if (containerTransactions == null || containerTransactions.isEmpty()) return result; ContainerTransactionMetaData bestMatchTransaction = null; MethodMetaData bestMatch = null; for (ContainerTransactionMetaData transaction : containerTransactions) { MethodMetaData match = transaction.bestMatch(methodName, params, iface, bestMatch); if (match != bestMatch) { bestMatchTransaction = transaction; bestMatch = match; } } if (bestMatchTransaction != null) result = bestMatchTransaction.getTransAttribute(); return result; }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public TransactionAttributeType getMethodTransactionType(String methodName, Class<?>[] params, MethodInterfaceType iface) { // default value TransactionAttributeType result = null; ContainerTransactionsMetaData containerTransactions = getContainerTransactions(); if (containerTransactions == null || containerTransactions.isEmpty()) return result; ContainerTransactionMetaData bestMatchTransaction = null; MethodMetaData bestMatch = null; for (ContainerTransactionMetaData transaction : containerTransactions) { MethodMetaData match = transaction.bestMatch(methodName, params, iface, bestMatch); if (match != bestMatch) { bestMatchTransaction = transaction; bestMatch = match; } } if (bestMatchTransaction != null) result = bestMatchTransaction.getTransAttribute(); return result; }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public TransactionAttributeType getMethodTransactionType(String methodName, Class<?>[] params, MethodInterfaceType iface) { // default value TransactionAttributeType result = null; ContainerTransactionsMetaData containerTransactions = getContainerTransactions(); if (containerTransactions == null || containerTransactions.isEmpty()) return result; ContainerTransactionMetaData bestMatchTransaction = null; MethodMetaData bestMatch = null; for (ContainerTransactionMetaData transaction : containerTransactions) { MethodMetaData match = transaction.bestMatch(methodName, params, iface, bestMatch); if (match != bestMatch) { bestMatchTransaction = transaction; bestMatch = match; } } if (bestMatchTransaction != null) result = bestMatchTransaction.getTransAttribute(); return result; }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public TransactionAttributeType getMethodTransactionType(String methodName, Class<?>[] params, MethodInterfaceType iface) { // default value TransactionAttributeType result = null; ContainerTransactionsMetaData containerTransactions = getContainerTransactions(); if (containerTransactions == null || containerTransactions.isEmpty()) return result; ContainerTransactionMetaData bestMatchTransaction = null; MethodMetaData bestMatch = null; for (ContainerTransactionMetaData transaction : containerTransactions) { MethodMetaData match = transaction.bestMatch(methodName, params, iface, bestMatch); if (match != bestMatch) { bestMatchTransaction = transaction; bestMatch = match; } } if (bestMatchTransaction != null) result = bestMatchTransaction.getTransAttribute(); return result; }
annotation.setType(transaction.getTransAttribute()); addAnnotations(TransactionAttribute.class, annotation, container, method);
if (containerTransactions != null) { for (final ContainerTransactionMetaData containerTx : containerTransactions) { final TransactionAttributeType txAttr = containerTx.getTransAttribute(); final Integer timeout = timeout(containerTx); final MethodsMetaData methods = containerTx.getMethods();