|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Extension of Record interface
| Nested Class Summary |
| Nested classes inherited from class com.sap.mdm.data.Record |
Record.CheckoutStatus, Record.MatrixType, Record.ModificationStatus |
| Method Summary | |
boolean |
containsAttribute(String taxonomyFieldCode,
String attrCode)
Check if specified attribute is populate with data |
boolean |
containsField(String fieldCode)
Check if specified field is populate with data |
RecordEx[] |
findLookupRecords(String lookupFieldCode)
Find lookup record (or records for multi-value case) in cache or retrieve from repository |
String[] |
getAttributeCodes(String taxonomyFieldCode)
Get array of attribute codes for the specified taxonomy field. |
String[] |
getAttributeDisplayValue(FieldId taxonomyFieldId,
AttributeId attrId)
Deprecated. by getAttributeDisplayValue(FieldId, AttributeId, int) using RegionLayer.CURRENT mode. |
String[] |
getAttributeDisplayValue(FieldId taxonomyFieldId,
AttributeId attrId,
int regionalLayer)
Returns display value of the specified attribute. |
String[] |
getAttributeDisplayValue(String taxonomyFieldCode,
String attrCode)
Deprecated. by getAttributeDisplayValue(String, String, int) using RegionLayer.CURRENT mode. |
String[] |
getAttributeDisplayValue(String taxonomyFieldCode,
String attrCode,
int regionalLayer)
Returns display value of the specified attribute. |
MdmValue |
getAttributeValue(String taxonomyFieldCode,
String attrCode)
Get value of the specified attribute for taxonomy field. |
String[] |
getFieldCodes()
Get array of field codes for all populated records. |
String[] |
getFieldDisplayValue(FieldId fieldId)
Returns display value of the specified field. |
String[] |
getFieldDisplayValue(String fieldCode)
Returns display value of the specified field. |
MdmValue |
getFieldValue(String fieldCode)
Get value of the specified field. |
String |
getLookupDisplayValue(String lookupFieldCode)
Returns display value for lookup field |
MultiregionValue |
getMultiregionFieldValue(String fieldCode)
Get multi-region value of the specified field. |
String |
getTupleDisplayValue(String tupleFieldCode)
Returns display value for tuple field |
boolean |
isQualifiedField(String fieldCode)
Indicates if the specified field is qualified lookup field |
boolean |
isTaxonomyField(String fieldCode)
Indicates if the specified field is taxonomy field |
void |
setAttributeValue(String taxonomyFieldCode,
String attrCode,
MdmValue value)
Set new value to the specified attribute for taxonomy field. |
void |
setFieldValue(String fieldCode,
MdmValue value)
Set new value to the specified field. |
| Method Detail |
public String[] getFieldCodes()
public MdmValue getFieldValue(String fieldCode)
throws IllegalArgumentException
fieldCode - field code
IllegalArgumentException - if field with specified code does not exist or was not populated
public void setFieldValue(String fieldCode,
MdmValue value)
throws IllegalArgumentException,
MdmValueTypeException
fieldCode - field codevalue - new field value
IllegalArgumentException - if field with specified code does not exist
MdmValueTypeException - if there is mismatch between field type and type of value
public MultiregionValue getMultiregionFieldValue(String fieldCode)
throws IllegalArgumentException
fieldCode - field code
IllegalArgumentException - if field with specified code does not exist or was not populated
public RecordEx[] findLookupRecords(String lookupFieldCode)
throws IllegalArgumentException
lookupFieldCode - code of lookup field
IllegalArgumentException - if field with specified code does not exist or
was not populated or is not lookup field
public String getLookupDisplayValue(String lookupFieldCode)
throws IllegalArgumentException
lookupFieldCode - code of lookup field
IllegalArgumentException - if field with specified code does not exist or
was not populated or is not lookup field
public String getTupleDisplayValue(String tupleFieldCode)
throws IllegalArgumentException
tupleFieldCode - code of tuple field
IllegalArgumentException - if field with specified code does not exist or
is not tuple fieldpublic boolean isTaxonomyField(String fieldCode)
fieldCode - field code
true if specified field is taxonomy field, false otherwisepublic boolean isQualifiedField(String fieldCode)
fieldCode - field code
true if specified field is qualified lookup field, false otherwisepublic boolean containsField(String fieldCode)
fieldCode - field code
public String[] getAttributeCodes(String taxonomyFieldCode)
throws IllegalArgumentException
taxonomyFieldCode - taxonomy field code
IllegalArgumentException - if field was not populated or field is not taxonomy field
public MdmValue getAttributeValue(String taxonomyFieldCode,
String attrCode)
throws IllegalArgumentException
taxonomyFieldCode - taxonomy field codeattrCode - attribute code
IllegalArgumentException - if field or attribute with specified code was not populated or
field is not taxonomy field
public void setAttributeValue(String taxonomyFieldCode,
String attrCode,
MdmValue value)
throws IllegalArgumentException,
MdmValueTypeException
taxonomyFieldCode - taxonomy field codeattrCode - attribute codevalue - new attribute value
IllegalArgumentException - if field or attribute with specified code was not populated or
field is not taxonomy field
MdmValueTypeException - if there is mismatch between attribute type and type of value
public boolean containsAttribute(String taxonomyFieldCode,
String attrCode)
taxonomyFieldCode - field codeattrCode - attribute code
public String[] getFieldDisplayValue(FieldId fieldId)
throws IllegalArgumentException
fieldId - the field ID
IllegalArgumentException
public String[] getFieldDisplayValue(String fieldCode)
throws IllegalArgumentException
fieldCode - the field code
IllegalArgumentException
public String[] getAttributeDisplayValue(FieldId taxonomyFieldId,
AttributeId attrId)
throws IllegalArgumentException
getAttributeDisplayValue(FieldId, AttributeId, int) using RegionLayer.CURRENT mode.
taxonomyFieldId - the ID of taxonomy field the specified attribute belongs toattrId - the attribute ID
IllegalArgumentException
public String[] getAttributeDisplayValue(String taxonomyFieldCode,
String attrCode)
throws IllegalArgumentException
getAttributeDisplayValue(String, String, int) using RegionLayer.CURRENT mode.
taxonomyFieldCode - the code of taxonomy field the specified attribute belongs toattrCode - the attribute code
IllegalArgumentException
public String[] getAttributeDisplayValue(FieldId taxonomyFieldId,
AttributeId attrId,
int regionalLayer)
throws IllegalArgumentException
taxonomyFieldId - the ID of taxonomy field the specified attribute belongs toattrId - the attribute IDregionalLayer - specifies the mode for retrieving multilingual data. If regionalLayer is CURRENT - current
session language text value is returned (empty string if there is no value). If regionalLayer is
PRIMARY_INHERITED - check the value for current session language, if exists return it, else check the primary
inherited languages if exists return it else return empty string. If regionalLayer is INHERITED check the value
for current session language, return the value if exists, else check the text value in primary inherited languages,
return it if exists and if not check the value in secondary inherited languages.
Note: Only RegionalLayer.CURRENT, RegionalLayer.PRIMARY_INHERITED
and RegionalLayer.INHERITED are supported.
IllegalArgumentExceptionRegionalLayer
public String[] getAttributeDisplayValue(String taxonomyFieldCode,
String attrCode,
int regionalLayer)
throws IllegalArgumentException
taxonomyFieldCode - the code of taxonomy field the specified attribute belongs toattrCode - the attribute coderegionalLayer - specifies the mode for retrieving multilingual data. If regionalLayer is CURRENT - current
session language text value is returned (empty string if there is no value). If regionalLayer is
PRIMARY_INHERITED - check the value for current session language, if exists return it, else check the primary
inherited languages if exists return it else return empty string. If regionalLayer is INHERITED check the value
for current session language, return the value if exists, else check the text value in primary inherited languages,
return it if exists and if not check the value in secondary inherited languages.
Note: Only RegionalLayer.CURRENT, RegionalLayer.PRIMARY_INHERITED
and RegionalLayer.INHERITED are supported.
IllegalArgumentExceptionRegionalLayer
|
|||||||||||
| 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.