Examples of TransactionAttributeType


Examples of javax.ejb.TransactionAttributeType

   public TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface)
   {
      if (m == null)
         return TransactionAttributeType.SUPPORTS;

      TransactionAttributeType result = null;
      if (methodTx != null)
      {
         result = methodTx.get(m);
         if (result != null)
            return result;
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

    * @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);
   }
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

      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;
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

    * @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;

View Full Code Here

Examples of javax.ejb.TransactionAttributeType

   public TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface)
   {
      if (m == null)
         return TransactionAttributeType.SUPPORTS;

      TransactionAttributeType result = null;
      if (methodTx != null)
      {
         result = methodTx.get(m);
         if (result != null)
            return result;
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

    *
    * @return the transaction type
    */
   public byte getTransactionType()
   {
      TransactionAttributeType attribute = getDelegate().getTransAttribute();
      return BeanMetaData.mapTransactionType(attribute);
   }
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

    * @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;

View Full Code Here

Examples of javax.ejb.TransactionAttributeType

   public TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface)
   {
      if (m == null)
         return TransactionAttributeType.SUPPORTS;

      TransactionAttributeType result = null;
      if (methodTx != null)
      {
         result = methodTx.get(m);
         if (result != null)
            return result;
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

      {
         return;
      }
      for (ContainerTransactionMetaData transactionMetaData : containerTransactions)
      {
         TransactionAttributeType txAttributeType = transactionMetaData.getTransAttribute();

         MethodsMetaData methods = transactionMetaData.getMethods();
         if (methods == null || methods.isEmpty())
         {
            continue;
View Full Code Here

Examples of javax.ejb.TransactionAttributeType

   @AroundInvoke
   public Object invoke(InvocationContext invocation) throws Exception
   {
      Method invokedMethod = invocation.getMethod();
      TransactionAttributeType txAttr = this.getTransactionalComponent().getTransactionAttributeType(invokedMethod);
      switch (txAttr)
      {
         case MANDATORY:
            return mandatory(invocation);
         case NEVER:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.