Class SetViaCheck
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.methods.SetViaCheck
Method to generate the method "setZZZ" using ASM for CHECK_WRITE fields.
static void dnSetZZZ(MyClass objPC, YYY zzz)
{
if (objPC.dnFlags != 0 && objPC.dnStateManager != null)
objPC.dnStateManager.setStringField(objPC, 2, objPC.ZZZ, zzz);
else
{
objPC.ZZZ = zzz;
if (objPC.dnIsDetached() == true)
((BitSet) objPC.dnDetachedState[3]).set(2);
}
}
with the last part only applying when Detachable-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractMemberMetaDataField that this dnSetZZZ is for.Fields inherited from class ClassMethod
access, argNames, argTypes, enhancer, exceptions, methodName, returnType, visitor -
Constructor Summary
ConstructorsConstructorDescriptionSetViaCheck(ClassEnhancer enhancer, AbstractMemberMetaData fmd) Constructor. -
Method Summary
Methods inherited from class ClassMethod
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialise
-
Field Details
-
fmd
Field that this dnSetZZZ is for.
-
-
Constructor Details
-
SetViaCheck
Constructor.- Parameters:
enhancer- ClassEnhancerfmd- MetaData for the field we are generating for
-
-
Method Details
-
execute
public void execute()Method to add the contents of the class method.- Specified by:
executein classClassMethod
-