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.InvalidAttributeAccess
BaseDataType.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.
|
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, getResource, getResource, getResourceId, getType, hashCode, 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, unwrapConnectable, unwrapConnectableServer, unwrapControlFrame, unwrapCoordinates, unwrapCreateLike, unwrapCustomFont, unwrapDatabaseInfo, unwrapDataObject, unwrapDataRelation, unwrapDataSet, unwrapDataSetChangeable, unwrapDataSource, unwrapDataSourceModifiable, unwrapDeblank, unwrapDebugger, unwrapDereferenceable, unwrapDirectManipulation, unwrapDisableRedraw, unwrapDown, unwrapDroppable, 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, 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, unwrapProcedure, unwrapProfiler, unwrapProgressBar, unwrapQuery, unwrapQueryAssociable, unwrapRadioSet, unwrapRcodeInfo, unwrapRectangle, 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, unwrapWidget, unwrapWidgetExtension, unwrapWindow, unwrapWithCaption, unwrapWriteProtectable, unwrapXCommon, unwrapXDocument, unwrapXEntity, unwrapXmlData, unwrapXmlNode, unwrapXmlSchema, unwrapXNodeRef, writeExternal
assign, calcFormatLength, createProxy, createProxy, deepCopy, elementsOfType, equals, fallback, formatLength, fromTypeName, generateDefault, generateUnknown, getAssigner, getSize, getTypeName, incompatibleTypesOnConversion, initialize, initializeDefaultExtent, instantiateDefault, instantiateDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variable
changed, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobal
private final FieldReference fieldRef
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 handle
public 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 handle
true
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.