org.jpox.enhancer.asm.method
Class CheckWrite
java.lang.Object
org.jpox.enhancer.ClassMethod
org.jpox.enhancer.asm.ASMClassMethod
org.jpox.enhancer.asm.method.CheckWrite
public class CheckWrite
- extends ASMClassMethod
Method to generate the method "jdoSetZZZ" using ASM for CHECK_WRITE fields.
static void jdoSetZZZ(MyClass objPC, YYY zzz)
{
if (objPC.jdoFlags != 0 && objPC.jdoStateManager != null)
objPC.jdoStateManager.setStringField(objPC, 2, objPC.ZZZ, zzz);
else
{
objPC.ZZZ = zzz;
if (objPC.jdoIsDetached() == true)
((BitSet) objPC.jdoDetachedState[3]).set(2);
}
}
with the last part only applying when Detachable
- Version:
- $Revision: 1.6 $
|
Field Summary |
protected org.jpox.metadata.AbstractMemberMetaData |
fmd
Field that this jdoSetZZZ is for. |
|
Method Summary |
void |
execute()
Method to add the contents of the class method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
fmd
protected org.jpox.metadata.AbstractMemberMetaData fmd
- Field that this jdoSetZZZ is for.
CheckWrite
public CheckWrite(ClassEnhancer enhancer,
org.jpox.metadata.AbstractMemberMetaData fmd)
- Constructor.
- Parameters:
enhancer - ClassEnhancerfmd - MetaData for the field we are generating for
execute
public void execute()
- Method to add the contents of the class method.
- Specified by:
execute in class ClassMethod
Copyright © -2008 . All Rights Reserved.