com.caucho.ejb.gen
Class StatefulMethod

java.lang.Object
  extended by com.caucho.ejb.gen.BusinessMethodGenerator
      extended by com.caucho.ejb.gen.StatefulMethod
All Implemented Interfaces:
EjbCallChain
Direct Known Subclasses:
StatefulRemoveMethod

public class StatefulMethod
extends BusinessMethodGenerator

Represents a stateful local business method


Constructor Summary
StatefulMethod(StatefulView view, ApiMethod apiMethod, java.lang.reflect.Method implMethod, int index)
           
 
Method Summary
protected  void generateContent(JavaWriter out)
           
protected  void generatePostCall(JavaWriter out)
          Generates the underlying bean instance
protected  void generatePreCall(JavaWriter out)
          Generates the underlying bean instance
protected  void generateSuper(JavaWriter out)
          Generates the underlying bean instance
protected  void generateThis(JavaWriter out)
          Generates the underlying bean instance
protected  TransactionAttributeType getDefaultTransactionType()
           
protected  java.lang.String getSuper()
          Generates the underlying bean instance
 void introspect(java.lang.reflect.Method apiMethod, java.lang.reflect.Method implMethod)
          Session bean default is REQUIRED
 boolean isEnhanced()
          Returns true if any interceptors enhance the business method
 void setRemove(boolean isRemove)
          Set true for a remove method
 void setRemoveRetainIfException(boolean isRetain)
          Set true for a remove method
 
Methods inherited from class com.caucho.ejb.gen.BusinessMethodGenerator
createXa, generate, generateCall, generateCall, generateConstructor, generateConstructorTop, generateHeader, generateInterceptorTarget, generatePreReturn, generatePrologue, generatePrologueTop, generateThrows, getApiMethod, getEjbClass, getImplMethod, getInterceptor, getSecurity, getView, getXa, hasException, hasXA, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatefulMethod

public StatefulMethod(StatefulView view,
                      ApiMethod apiMethod,
                      java.lang.reflect.Method implMethod,
                      int index)
Method Detail

setRemove

public void setRemove(boolean isRemove)
Description copied from class: BusinessMethodGenerator
Set true for a remove method

Overrides:
setRemove in class BusinessMethodGenerator

setRemoveRetainIfException

public void setRemoveRetainIfException(boolean isRetain)
Description copied from class: BusinessMethodGenerator
Set true for a remove method

Overrides:
setRemoveRetainIfException in class BusinessMethodGenerator

introspect

public void introspect(java.lang.reflect.Method apiMethod,
                       java.lang.reflect.Method implMethod)
Session bean default is REQUIRED

Specified by:
introspect in interface EjbCallChain
Overrides:
introspect in class BusinessMethodGenerator

getDefaultTransactionType

protected TransactionAttributeType getDefaultTransactionType()

isEnhanced

public boolean isEnhanced()
Returns true if any interceptors enhance the business method

Specified by:
isEnhanced in interface EjbCallChain
Overrides:
isEnhanced in class BusinessMethodGenerator

generateContent

protected void generateContent(JavaWriter out)
                        throws java.io.IOException
Overrides:
generateContent in class BusinessMethodGenerator
Throws:
java.io.IOException

generatePreCall

protected void generatePreCall(JavaWriter out)
                        throws java.io.IOException
Description copied from class: BusinessMethodGenerator
Generates the underlying bean instance

Overrides:
generatePreCall in class BusinessMethodGenerator
Throws:
java.io.IOException

generateThis

protected void generateThis(JavaWriter out)
                     throws java.io.IOException
Generates the underlying bean instance

Overrides:
generateThis in class BusinessMethodGenerator
Throws:
java.io.IOException

generateSuper

protected void generateSuper(JavaWriter out)
                      throws java.io.IOException
Generates the underlying bean instance

Throws:
java.io.IOException

getSuper

protected java.lang.String getSuper()
                             throws java.io.IOException
Generates the underlying bean instance

Overrides:
getSuper in class BusinessMethodGenerator
Throws:
java.io.IOException

generatePostCall

protected void generatePostCall(JavaWriter out)
                         throws java.io.IOException
Generates the underlying bean instance

Overrides:
generatePostCall in class BusinessMethodGenerator
Throws:
java.io.IOException