public class HandleFieldRef extends handle
All writing is done to both the DMO and the local handle's private value.
On instantiation, the current field value is saved in the handle's private
value, and this instance will be used for reading until set(com.goldencode.p2j.util.WrappedResource) or
setUnknown() is called again.
This usage is OK
handle.Helper, handle.InvalidAttributeAccessBaseDataType.Type, BaseDataType.WrapperHandler| Modifier and Type | Field and Description |
|---|---|
private FieldReference |
fieldRef
The field referenced by this instance.
|
UNKNOWN_ARGUMENT| Constructor and Description |
|---|
HandleFieldRef(DataModelObject dmo,
java.lang.String property)
Constructor.
|
HandleFieldRef(DataModelObject dmo,
java.lang.String property,
int index)
Constructor.
|
HandleFieldRef(DataModelObject dmo,
java.lang.String property,
int64 index)
Constructor.
|
HandleFieldRef(FieldReference fieldRef)
Initialize using the given field.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delayPersistentSet()
Indicate if in a {@code RUN ...
|
private void |
init(DataModelObject dmo)
Initialize this instance.
|
void |
set(WrappedResource value)
Set the value of this instance as a
WrappedResource. |
void |
setUnknown()
Sets the state of this instance's
unknown value flag or state to true. |
_isValid, _isValidEvent, _isValidEvent, assign, assign, assign, assign, assign, assign, buildExternalResource, compareTo, defaultFormatString, duplicate, fromResourceId, fromResourceId, fromResourceId, fromString, fromString, fromString, get, getHelper, getResource, getResource, getResourceId, getType, hashCode, instantiateDefault, instantiateUnknown, invalidAttribute, invalidAttribute, invalidAttribute, isExternalResource, isHandleTypeOf, isIncompatibleTypesOnConversion, isType, isUnknown, isValid, isValidEvent, isValidEvent, knownResource, readExternal, readOnlyError, readOnlyError, removeResource, resourceId, toString, toString, toStringExport, toStringMessage, unwrap, unwrapADMData, unwrapAsync, unwrapAsyncRequestCount, unwrapAuditControl, unwrapAuditPolicy, unwrapAutoReturnElement, unwrapAutoZapElement, unwrapAvailable, unwrapBlank, unwrapBox, unwrapBrowse, unwrapBrowseColumn, unwrapBrowseElement, unwrapBuffer, unwrapBufferCollection, unwrapBufferField, unwrapButton, unwrapButtonList, unwrapButtonListGroup, unwrapButtonListGroupItem, unwrapCalendar, unwrapCall, unwrapCallbackProcedure, unwrapCheckable, unwrapClearable, unwrapClientPrincipal, unwrapClipboard, unwrapColorTable, unwrapComData, unwrapCommonField, unwrapCommonListWidget, unwrapCommonProcedure, unwrapCommonSessionId, unwrapCompiler, unwrapConnectable, unwrapConnectableServer, unwrapControlFrame, unwrapCoordinates, unwrapCreateLike, unwrapCustomFont, unwrapDatabaseInfo, unwrapDataObject, unwrapDataRelation, unwrapDataSet, unwrapDataSetChangeable, unwrapDataSource, unwrapDataSourceModifiable, unwrapDeblank, unwrapDebugger, unwrapDereferenceable, unwrapDirectManipulation, unwrapDisableRedraw, unwrapDown, unwrapDroppable, unwrapDsLogManager, unwrapDynamicResource, unwrapEditor, unwrapEmailSender, unwrapEmptyTempTable, unwrapEnabled, unwrapEncoding, unwrapError, unwrapErrorStatus, unwrapErrorString, unwrapEventProcedure, unwrapFieldGroup, unwrapFile, unwrapFileInfo, unwrapFillable, unwrapFirstLastProcedure, unwrapFontTable, unwrapFrame, unwrapFwdReport, unwrapFWDTimer, unwrapHtmlBrowser, unwrapImageList, unwrapImageOnly, unwrapImageSupport, unwrapImageWidgetSupport, unwrapIndexed, unwrapIndexInformation, unwrapInnerLines, unwrapInstantiatingProcedure, unwrapIterableResource, unwrapIterCounter, unwrapJsonData, unwrapKeyable, unwrapLabels, unwrapLastEvent, unwrapListImages, unwrapLocalName, unwrapLogManager, unwrapMaxCharsElement, unwrapMenu, unwrapMenuItem, unwrapMinHeightChars, unwrapMnemonic, unwrapMultiple, unwrapNamedSerializable, unwrapNamespaceURI, unwrapNodes, unwrapNumEntries, unwrapNumItems, unwrapOcxDragDrop, unwrapOcxMouse, unwrapOpenable, unwrapOrientation, unwrapPane, unwrapPaneEntity, unwrapPasswordField, unwrapPersistableProcedure, unwrapPrimary, unwrapProcedure, unwrapProfiler, unwrapProgressBar, unwrapQuery, unwrapQueryAssociable, unwrapRadioSet, unwrapRcodeInfo, unwrapRectangle, unwrapRefCounter, unwrapRejectable, unwrapRemotable, unwrapRemoveNode, unwrapReplace, unwrapRequestResponseInfo, unwrapResultListHandler, unwrapSaxAttributes, unwrapSaxEntity, unwrapSaxReader, unwrapSaxWriter, unwrapScrollbarHorizontalElement, unwrapScrollbarVerticalElement, unwrapSecurityPolicy, unwrapSelectableText, unwrapSelectionList, unwrapSensitive, unwrapSerializeHiddenable, unwrapServer, unwrapSession, unwrapSignature, unwrapSizeable, unwrapSlider, unwrapSOAPEntity, unwrapSOAPFault, unwrapSOAPHeader, unwrapSOAPHeaderEntry, unwrapSocket, unwrapSocketListener, unwrapSortedElement, unwrapSpreadsheet, unwrapSslServerAttribute, unwrapStream, unwrapSubType, unwrapTabSet, unwrapTempTable, unwrapTempTableDuplicator, unwrapTitledElement, unwrapTopOnly, unwrapTransaction, unwrapTree, unwrapTreeFace, unwrapTreeList, unwrapTreeNodeCollection, unwrapTreeNodeFace, unwrapTreeView, unwrapType, unwrapUniqueID, unwrapVisible, unwrapWebContext, unwrapWidget, unwrapWidgetExtension, unwrapWindow, unwrapWithCaption, unwrapWriteProtectable, unwrapXCommon, unwrapXDocument, unwrapXEntity, unwrapXmlData, unwrapXmlNode, unwrapXmlSchema, unwrapXNodeRef, writeExternalassign, calcFormatLength, createProxy, createProxy, deepCopy, elementsOfType, equals, fallback, formatLength, fromTypeName, generateDefault, generateUnknown, getAssigner, getSize, getTypeName, incompatibleTypesOnConversion, initialize, initializeDefaultExtent, instantiateDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variablechanged, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobalprivate final FieldReference fieldRef
public HandleFieldRef(FieldReference fieldRef)
fieldRef - The field reference.public HandleFieldRef(DataModelObject dmo, java.lang.String property)
dmo - Proxy for record whose field is being accessed.property - Name of dmo field.public HandleFieldRef(DataModelObject dmo, java.lang.String property, int64 index)
dmo - Proxy for record whose field is being accessed.property - Name of dmo field.index - Index to pass to property's getter method at resolve time.public HandleFieldRef(DataModelObject dmo, java.lang.String property, int index)
dmo - Proxy for record whose field is being accessed.property - Name of dmo field.index - Index to pass to property's getter method at resolve time.public void set(WrappedResource value)
WrappedResource.
Also updates the fieldRef with the new state of this handle instance.
public void setUnknown()
unknown value flag or state to true.
Warning: the data stored in this instance may be invalid after calling this method.
Also updates the fieldRef with the new state of this handle instance.
setUnknown in class handlepublic boolean delayPersistentSet()
RUN ... PERSISTENT SET statement, this handle should receive
the resource before the called procedure is executed (this returns false) or
after the called procedure is executed (this returns true).
In the particular case of a HandleFieldRef, the handle should be set after
the called procedure is executed.delayPersistentSet in class handletrue if the handle should be set after the called procedure is executed.private void init(DataModelObject dmo)
dmo - Proxy for record whose field is being accessed.