/** * 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 transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public byte getTransactionMethod(Method m, InvocationType iface) { if (m == null) return TX_SUPPORTS; Byte b = methodTx.get(m); if (b != null) return b; TransactionAttributeType type = getDelegate().getMethodTransactionType(m, invocationTypeToMethodInterfaceType(iface)); byte result = mapTransactionType(type); // provide default if method is not found in descriptor if (result == TX_UNKNOWN) result = TX_REQUIRED; methodTx.put(m, result); 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 byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { TransactionAttributeType type = getDelegate().getMethodTransactionType(methodName, params, invocationTypeToMethodInterfaceType(iface)); return mapTransactionType(type); }
/** * Get the transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public byte getTransactionMethod(Method m, InvocationType iface) { if (m == null) return TX_SUPPORTS; Byte b = methodTx.get(m); if (b != null) return b; TransactionAttributeType type = getDelegate().getMethodTransactionType(m, invocationTypeToMethodInterfaceType(iface)); byte result = mapTransactionType(type); // provide default if method is not found in descriptor if (result == TX_UNKNOWN) result = TX_REQUIRED; methodTx.put(m, result); 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 byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { TransactionAttributeType type = getDelegate().getMethodTransactionType(methodName, params, invocationTypeToMethodInterfaceType(iface)); return mapTransactionType(type); }