org.jpox.enhancer.asm.method
Class JdoIsDirty
java.lang.Object
org.jpox.enhancer.ClassMethod
org.jpox.enhancer.asm.ASMClassMethod
org.jpox.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 $
|
Constructor Summary |
JdoIsDirty(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JdoIsDirty
public JdoIsDirty(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.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 © -2008 . All Rights Reserved.