org.jpox.enhancer.asm.method
Class JdoMakeDirty
java.lang.Object
org.jpox.enhancer.ClassMethod
org.jpox.enhancer.asm.ASMClassMethod
org.jpox.enhancer.asm.method.JdoMakeDirty
public class JdoMakeDirty
- extends ASMClassMethod
Method to generate the method "jdoMakeDirty" using ASM.
public void jdoMakeDirty(String fieldName)
{
if (jdoStateManager != null)
jdoStateManager.makeDirty(this, fieldName);
if (jdoIsDetached() && fieldName != null && fieldName.indexOf('.') > 0)
{
String className = fieldName.substring(0, fieldName.lastIndexOf('.'));
if (className.equals(this.getClass().getName()))
{
for (int i=0;i
and if not detachable
public void jdoMakeDirty(String fieldName)
{
if (jdoStateManager != null)
jdoStateManager.makeDirty(this, fieldName);
}
- Version:
- $Revision: 1.7 $
|
Constructor Summary |
JdoMakeDirty(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 |
JdoMakeDirty
public JdoMakeDirty(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 JdoMakeDirty 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.