public class JdoGetViaMediate extends ClassMethod
static YYY jdoGetZZZ(MyClass objPC) { if (objPC.jdoStateManager != null && !objPC.jdoStateManager.isLoaded(objPC, 0)) return (YYY) objPC.jdoStateManager.getObjectField(objPC, 0, objPC.ZZZ); if (objPC.jdoIsDetached() != false && ((BitSet) objPC.jdoDetachedState[2]).get(0) != true && ((BitSet) objPC.jdoDetachedState[3]).get(0) != true) throw new JDODetachedFieldAccessException(...); return objPC.ZZZ; }with the last part only applying when Detachable
Modifier and Type | Field and Description |
---|---|
protected AbstractMemberMetaData |
fmd
Field that this jdoGetXXX is for.
|
access, argNames, argTypes, enhancer, exceptions, LOCALISER, methodName, returnType, visitor
Constructor and Description |
---|
JdoGetViaMediate(ClassEnhancer enhancer,
AbstractMemberMetaData fmd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Method to add the contents of the class method.
|
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialise
protected AbstractMemberMetaData fmd
public JdoGetViaMediate(ClassEnhancer enhancer, AbstractMemberMetaData fmd)
enhancer
- ClassEnhancerfmd
- MetaData for the field we are generating forpublic void execute()
execute
in class ClassMethod
Copyright © 2021. All rights reserved.