public class RecordEntry
extends java.lang.Object
implements java.util.Map.Entry
Map.Entry
containing a single
WmRecord
field/value pair. RecordEntry
instances
represent the elements in the Set
returned by
WmRecord.entrySet()
. This object is created
internally by WmRecord
and should not be created by adapter writers.WmRecord.entrySet()
,
RecordEntrySet
Modifier and Type | Field and Description |
---|---|
protected com.wm.data.IDataCursor |
iDataCurrentCursorPosition
Cursor to key/value entry in the IData to be referenced.
|
protected boolean |
isCursorOwner
If true, this RecordEntry owns the IDataCursor and is responsible
for destroying it.
|
protected boolean |
isValidCursor
If true, iDataCurrentCursorPosition was assigned.
|
protected java.lang.Object |
key
The key of the record entry.
|
protected java.lang.Object |
value
The value of the record entry.
|
Constructor and Description |
---|
RecordEntry(com.wm.data.IDataCursor currentCursorPosition,
boolean isCursorOwner)
Constructor for an entry in an IData object, referenced by a IDataCursor's current
cursor position.
|
RecordEntry(java.lang.String key,
java.lang.Object value)
Constructor for key/value pair arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Causes this entry object to be destroyed and all underlying resources to
be cleaned up.
|
void |
finalize()
Overides default finalization method to call this entry's destroy method.
|
java.lang.Object |
getKey()
Returns the name of the key for the corresponding
WmRecord field entry. |
java.lang.Object |
getValue()
Returns the value of this
RecordEntry . |
java.lang.Object |
setValue(java.lang.Object value)
Sets the value of this
RecordEntry . |
protected com.wm.data.IDataCursor iDataCurrentCursorPosition
protected boolean isCursorOwner
protected boolean isValidCursor
protected java.lang.Object key
protected java.lang.Object value
public RecordEntry(com.wm.data.IDataCursor currentCursorPosition, boolean isCursorOwner)
currentCursorPosition
- The IDataCursor refering to the current key/value pair
in the IData objectisCursorOwner
- If true, the RecordEntry is responsible for destroying
to cursor passed in when the RecordEntry is destroyedpublic RecordEntry(java.lang.String key, java.lang.Object value)
key
- String key for the record entryvalue
- Any java object representing the value of this record entrypublic void destroy()
public void finalize()
finalize
in class java.lang.Object
public java.lang.Object getKey()
WmRecord
field entry.getKey
in interface java.util.Map.Entry
String
object containing the name of the keypublic java.lang.Object getValue()
RecordEntry
.public java.lang.Object setValue(java.lang.Object value)
RecordEntry
.setValue
in interface java.util.Map.Entry
value
- the value of this RecordEntry
. If the field value specified is an
IData
but not an instance of WmRecord
, a
WmRecord
instance is created to wrap the IData
field value.IData
but not an instance of
WmRecord
, a WmRecord
instance is created and returned, wrapping the IData
field value.
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.