com.caucho.ejb.gen
Class TransactionChain

java.lang.Object
  extended by com.caucho.java.gen.CallChain
      extended by com.caucho.java.gen.FilterCallChain
          extended by com.caucho.ejb.gen.TransactionChain

public class TransactionChain
extends FilterCallChain

Generates the skeleton for a method call.


Constructor Summary
TransactionChain(CallChain next, TransactionAttributeType xaType, ApiMethod apiMethod, ApiMethod implMethod)
           
TransactionChain(CallChain next, TransactionAttributeType xaType, ApiMethod apiMethod, ApiMethod implMethod, boolean isEJB3, java.util.ArrayList<ApplicationExceptionConfig> appExceptions)
           
 
Method Summary
static TransactionChain create(CallChain next, TransactionAttributeType xaType, ApiMethod apiMethod, ApiMethod implMethod)
           
static TransactionChain create(CallChain next, TransactionAttributeType xaType, ApiMethod apiMethod, ApiMethod implMethod, boolean isEJB3, java.util.ArrayList<ApplicationExceptionConfig> appExceptions)
           
 void generateCall(JavaWriter out, java.lang.String retType, java.lang.String var, java.lang.String[] args)
          Prints a call within the same JVM
protected  void generateExceptionHandling(JavaWriter out)
           
 
Methods inherited from class com.caucho.java.gen.FilterCallChain
getExceptionTypes, getParameterTypes, getReturnType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionChain

public TransactionChain(CallChain next,
                        TransactionAttributeType xaType,
                        ApiMethod apiMethod,
                        ApiMethod implMethod)

TransactionChain

public TransactionChain(CallChain next,
                        TransactionAttributeType xaType,
                        ApiMethod apiMethod,
                        ApiMethod implMethod,
                        boolean isEJB3,
                        java.util.ArrayList<ApplicationExceptionConfig> appExceptions)
Method Detail

create

public static TransactionChain create(CallChain next,
                                      TransactionAttributeType xaType,
                                      ApiMethod apiMethod,
                                      ApiMethod implMethod)

create

public static TransactionChain create(CallChain next,
                                      TransactionAttributeType xaType,
                                      ApiMethod apiMethod,
                                      ApiMethod implMethod,
                                      boolean isEJB3,
                                      java.util.ArrayList<ApplicationExceptionConfig> appExceptions)

generateCall

public void generateCall(JavaWriter out,
                         java.lang.String retType,
                         java.lang.String var,
                         java.lang.String[] args)
                  throws java.io.IOException
Prints a call within the same JVM

Overrides:
generateCall in class FilterCallChain
Parameters:
methodName - the name of the method to call
method - the method to call
Throws:
java.io.IOException

generateExceptionHandling

protected void generateExceptionHandling(JavaWriter out)
                                  throws java.io.IOException
Throws:
java.io.IOException