org.datanucleus.enhancer.bcel.method
Class JdoGetObjectId
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.bcel.BCELClassMethod
org.datanucleus.enhancer.bcel.method.SimpleStateManagerCall
org.datanucleus.enhancer.bcel.method.JdoGetObjectId
public class JdoGetObjectId
- extends SimpleStateManagerCall
Creates the jdoGetObjectId() method. The generated code looks like this :-
if (jdoStateManager != null)
return jdoStateManager.getObjectId(this);
if (this.jdoIsDetached() != true)
return null;
return jdoDetachedState[0];
- Version:
- $Revision: 1.6 $
|
Constructor Summary |
JdoGetObjectId(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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JdoGetObjectId
public JdoGetObjectId(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 -
getInstance
public static JdoGetObjectId 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.