/** * Get the container transactions for an ejb * * @param ejbName the ejb name * @return the container transactions or null for no result * @throws IllegalArgumentException for a null ejb name */ public ContainerTransactionsMetaData getContainerTransactionsByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); if (isEmpty()) return null; ContainerTransactionsMetaData result = null; for (ContainerTransactionMetaData transaction : this) { ContainerTransactionMetaData ejbTransaction = transaction.getContainerTransactionsByEjbName(ejbName); if (ejbTransaction != null) { if (result == null) result = new ContainerTransactionsMetaData(); result.add(ejbTransaction); } } return result; }
/** * Get the container transactions for an ejb * * @param ejbName the ejb name * @return the container transactions or null for no result * @throws IllegalArgumentException for a null ejb name */ public ContainerTransactionsMetaData getContainerTransactionsByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); if (isEmpty()) return null; ContainerTransactionsMetaData result = null; for (ContainerTransactionMetaData transaction : this) { ContainerTransactionMetaData ejbTransaction = transaction.getContainerTransactionsByEjbName(ejbName); if (ejbTransaction != null) { if (result == null) result = new ContainerTransactionsMetaData(); result.add(ejbTransaction); } } return result; }