org.jpox.enhancer.method
Class JdoGetVersion

java.lang.Object
  extended byorg.jpox.enhancer.method.ClassElementBuilder
      extended byorg.jpox.enhancer.method.MethodBuilder
          extended byorg.jpox.enhancer.method.SimpleStateManagerCall
              extended byorg.jpox.enhancer.method.JdoGetVersion

public class JdoGetVersion
extends SimpleStateManagerCall

Creates the jdoGetVersion() method. The generated code looks like :-

 if (jdoStateManager != null)
     return jdoStateManager.getVersion(this);
 if (this.jdoIsDetached() != true)
     return null;
 return jdoDetachedState[1];
 

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.jpox.enhancer.method.SimpleStateManagerCall
invokeMethod
 
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
JdoGetVersion(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, boolean isDetachable)
           
 
Method Summary
 void execute()
          ClassElementBuilder routine
static JdoGetVersion getInstance(GeneratorBase gen, boolean isDetachable)
           
 
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

JdoGetVersion

public JdoGetVersion(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,
                     boolean isDetachable)
Parameters:
methodName -
type -
resultType -
argType -
argName -
synthetic -
gen -
isDetachable - if the class is marked as detachable (jdo 2)
Method Detail

getInstance

public static JdoGetVersion getInstance(GeneratorBase gen,
                                        boolean isDetachable)

execute

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

Overrides:
execute in class SimpleStateManagerCall


Copyright © -2007 . All Rights Reserved.