org.jpox.enhancer.method
Class JdoReplaceDetachedState

java.lang.Object
  extended byorg.jpox.enhancer.method.ClassElementBuilder
      extended byorg.jpox.enhancer.method.MethodBuilder
          extended byorg.jpox.enhancer.method.JdoReplaceDetachedState

public class JdoReplaceDetachedState
extends MethodBuilder

Create jdoReplaceDetachedState() method. The generated code will be as follows :-

 if (jdoStateManager == null)
 {
 	   throw new IllegalStateException("state manager is null");
 }
 else
 {
     jdoDetachedState = jdoStateManager.replacingDetachedState(this, jdoDetachedState);
 }
 

Since:
1.1
Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.jpox.enhancer.method.MethodBuilder
argName, argType, factory, il, LOCALISER, methodGen, methodName, resultType, synthetic, type
 
Fields inherited from class org.jpox.enhancer.method.ClassElementBuilder
classConfig, classGen, className, constantPoolGen, gen, jdoConfig, packageConfig
 
Constructor Summary
JdoReplaceDetachedState(java.lang.String methodName, int type, org.apache.bcel.generic.Type resultType, org.apache.bcel.generic.Type[] argType, java.lang.String[] argName, boolean synthetic, GeneratorBase gen)
           
 
Method Summary
 void execute()
          ClassElementBuilder routine
static JdoReplaceDetachedState getInstance(GeneratorBase gen)
           
 
Methods inherited from class org.jpox.enhancer.method.MethodBuilder
close, createThrowException, createThrowException, equals, hashCode, init, isSynthetic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdoReplaceDetachedState

public JdoReplaceDetachedState(java.lang.String methodName,
                               int type,
                               org.apache.bcel.generic.Type resultType,
                               org.apache.bcel.generic.Type[] argType,
                               java.lang.String[] argName,
                               boolean synthetic,
                               GeneratorBase gen)
Parameters:
methodName -
type -
resultType -
argType -
argName -
synthetic -
gen -
Method Detail

getInstance

public static JdoReplaceDetachedState getInstance(GeneratorBase gen)

execute

public void execute()
Description copied from class: ClassElementBuilder
ClassElementBuilder routine

Overrides:
execute in class MethodBuilder


Copyright © -2007 . All Rights Reserved.