org.datanucleus.enhancer.asm.method
Class JdoIsXXX
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
org.datanucleus.enhancer.asm.method.JdoIsXXX
- Direct Known Subclasses:
- JdoIsDeleted, JdoIsNew, JdoIsPersistent, JdoIsTransactional
public abstract class JdoIsXXX
- extends ASMClassMethod
Base method to use for jdoIsXXX methods providing the majority of the enhancement.
- Version:
- $Revision: 1.3 $
|
Method Summary |
void |
execute()
Method to add the contents of the class method. |
protected abstract String |
getStateManagerIsMethod()
Method returning the name of the method on the StateManager that gives the return info. |
JdoIsXXX
public JdoIsXXX(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
- Constructor.
- Parameters:
enhancer - ClassEnhancername - Name of methodaccess - Access typereturnType - Return typeargTypes - Argument typesargNames - Argument names
getStateManagerIsMethod
protected abstract String getStateManagerIsMethod()
- Method returning the name of the method on the StateManager that gives the return info.
- Returns:
- Name of the StateManager method (isNew, isPersistent, isDeleted etc)
execute
public void execute()
- Method to add the contents of the class method.
Creates the method as follows
return jdoStateManager != null ? jdoStateManager.isXXX(this) : false;
where "isXXX" is replaced by the output of "getStateManagerIsMethod"
- Specified by:
execute in class ClassMethod
Copyright © 2012. All Rights Reserved.