org.datanucleus.enhancer.asm.method
Class JdoIsDirty
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
org.datanucleus.enhancer.asm.method.JdoIsDirty
public class JdoIsDirty
- extends ASMClassMethod
Method to generate the method "jdoIsDirty" using ASM.
public final boolean jdoIsDirty()
{
if (jdoStateManager != null)
return jdoStateManager.isDirty(this);
if (this.jdoIsDetached() != true)
return false;
if (((BitSet) jdoDetachedState[3]).length() <= 0)
return false;
return true;
}
or if not detachable
public final boolean jdoIsDirty()
{
if (jdoStateManager != null)
return jdoStateManager.isDirty(this);
return true;
}
- Version:
- $Revision: 1.8 $
JdoIsDirty
public JdoIsDirty(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
getInstance
public static JdoIsDirty getInstance(ClassEnhancer enhancer)
execute
public void execute()
- Method to add the contents of the class method.
- Specified by:
execute in class ClassMethod
Copyright © 2012. All Rights Reserved.