|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
org.datanucleus.enhancer.asm.method.JdoGetVersion
public class JdoGetVersion
Method to generate the method "jdoGetVersion" using ASM.
public final Object jdoGetVersion()
{
if (jdoStateManager != null)
return jdoStateManager.getVersion(this);
if (this.jdoIsDetached() != true)
return null;
return jdoDetachedState[1];
}
or (when not Detachable)
public final Object jdoGetVersion()
{
if (jdoStateManager != null)
return jdoStateManager.getVersion(this);
return null;
}
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.enhancer.asm.ASMClassMethod |
|---|
visitor |
| Fields inherited from class org.datanucleus.enhancer.ClassMethod |
|---|
access, argNames, argTypes, enhancer, exceptions, LOCALISER, methodName, returnType |
| Constructor Summary | |
|---|---|
JdoGetVersion(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
Constructor. |
|
| Method Summary | |
|---|---|
void |
execute()
Method to add the contents of the class method. |
static JdoGetVersion |
getInstance(ClassEnhancer enhancer)
|
| Methods inherited from class org.datanucleus.enhancer.asm.ASMClassMethod |
|---|
getClassEnhancer, getDescriptor, initialise, initialise |
| Methods inherited from class org.datanucleus.enhancer.ClassMethod |
|---|
close, equals, getAccess, getMethodAdditionMessage, getName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdoGetVersion(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
enhancer - ClassEnhancername - Name of methodaccess - Access typereturnType - Return typeargTypes - Argument typesargNames - Argument names| Method Detail |
|---|
public static JdoGetVersion getInstance(ClassEnhancer enhancer)
public void execute()
execute in class ClassMethod
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||