|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A data structure representing a tuple value.
| Nested Class Summary |
| Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue |
MdmValue.Type |
| Method Summary | |
boolean |
containsField(FieldId fieldId)
Check if specified field is populate with data |
Record[] |
findLookupRecords(FieldId lookupFieldId)
Returns the lookup record for the specified lookup field. |
String |
getDisplayValue()
Returns a display value for a tuple record. |
FieldId[] |
getFields()
Returns the field Ids. |
MdmValue |
getFieldValue(FieldId fieldId)
Returns the field value for the specified field. |
String |
getLookupDisplayValue(FieldId lookupFieldId)
Returns display value for lookup field |
TupleDefinitionSchema |
getMetadata()
Returns the metadata of the tuple definition |
MultiregionValue |
getMultiregionFieldValue(FieldId fieldId)
Returns the multi-region value for the specified field. |
String |
getTupleDisplayValue(FieldId tupleFieldId)
Returns the display value for the tuple field. |
TupleRecordId |
getTupleRecordId()
Returns the tuple record Id, uniquely identifying a tuple record. |
boolean |
hasFieldValue(FieldId fieldId)
Returns whether the specified field has field value, meaning not null. |
void |
setFieldValue(FieldId fieldId,
MdmValue value)
Sets the field value for the specified field. |
| Methods inherited from interface com.sap.mdm.valuetypes.MdmValue |
clone, getType, isMultiregion, isMultivalue, isNull |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public FieldId[] getFields()
public MdmValue getFieldValue(FieldId fieldId)
fieldId - a field Id
public MultiregionValue getMultiregionFieldValue(FieldId fieldId)
fieldId - a field Id
public void setFieldValue(FieldId fieldId,
MdmValue value)
fieldId - a field Idvalue - a field valuepublic TupleDefinitionSchema getMetadata()
public TupleRecordId getTupleRecordId()
public Record[] findLookupRecords(FieldId lookupFieldId)
throws IllegalArgumentException
lookupFieldId - a field Id
IllegalArgumentException
public String getLookupDisplayValue(FieldId lookupFieldId)
throws IllegalArgumentException
lookupFieldId - ID of lookup field
IllegalArgumentException - if field with specified ID does not exist or was not populated or is not lookup field
public String getTupleDisplayValue(FieldId tupleFieldId)
throws IllegalArgumentException
tupleFieldId - a tuple field
IllegalArgumentExceptionpublic String getDisplayValue()
TupleDefinitionProperties#getDisplayFieldIds()public boolean containsField(FieldId fieldId)
fieldId - field ID
public boolean hasFieldValue(FieldId fieldId)
getFieldValue(FieldId).isNull() always return true when
ResultDefinition.setIsLoadTupleValues(boolean) is set to false. In such a case,
this method can be used to determine if tuple values exist.
For non-tuple fields, the following statement is true:
getFieldValue(FieldId).isNull() != hasFieldValue(FieldId)
fieldId - field ID
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.