org.datanucleus.enhancer.bcel.method
Class JdoGetVersion

java.lang.Object
  extended by org.datanucleus.enhancer.ClassMethod
      extended by org.datanucleus.enhancer.bcel.BCELClassMethod
          extended by org.datanucleus.enhancer.bcel.method.SimpleStateManagerCall
              extended by org.datanucleus.enhancer.bcel.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.6 $

Field Summary
 
Fields inherited from class org.datanucleus.enhancer.bcel.method.SimpleStateManagerCall
invokeMethod
 
Fields inherited from class org.datanucleus.enhancer.bcel.BCELClassMethod
classGen, className, cmd, constantPoolGen, factory, il, LOCALISER, methodGen, synthetic
 
Fields inherited from class org.datanucleus.enhancer.ClassMethod
access, argNames, argTypes, enhancer, exceptions, methodName, returnType
 
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, BCELClassEnhancer gen)
           
 
Method Summary
 void execute()
          Method to add the contents of the class method.
static JdoGetVersion getInstance(BCELClassEnhancer gen)
           
 
Methods inherited from class org.datanucleus.enhancer.bcel.BCELClassMethod
close, createThrowException, createThrowException, getClassEnhancer, initialise
 
Methods inherited from class org.datanucleus.enhancer.ClassMethod
equals, getAccess, getMethodAdditionMessage, getName, hashCode
 
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,
                     BCELClassEnhancer gen)
Parameters:
methodName -
type -
resultType -
argType -
argName -
synthetic -
gen -
Method Detail

getInstance

public static JdoGetVersion getInstance(BCELClassEnhancer gen)

execute

public void execute()
Description copied from class: BCELClassMethod
Method to add the contents of the class method.

Overrides:
execute in class SimpleStateManagerCall


Copyright © 2009. All Rights Reserved.