|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents record in MDM repository. Is supplies methods for getting and setting values for all record elements: fields, taxonomy attributes, qualifiers.
HierNode,
RecordResultSet| Nested Class Summary | |
static interface |
Record.CheckoutStatus
Constants for Check-out Status of Record |
static interface |
Record.MatrixType
Constants for record matrix type |
static interface |
Record.ModificationStatus
Constants for Modification Status of Record |
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
containsAttribute(FieldId taxonomyFieldId,
AttributeId attrId)
Check if specified attribute is populate with data |
boolean |
containsField(FieldId fieldId)
Check if specified field is populate with data |
Record[] |
findLookupRecords(FieldId lookupFieldId)
Find supported lookup record (or records for multi-value case) in cache of result set for the specified lookup field. |
AttributeId[] |
getAttributes(FieldId taxonomyFieldId)
Get array of attribute IDs for the specified taxonomy field. |
MdmValue |
getAttributeValue(FieldId taxonomyFieldId,
AttributeId attrId)
Get value of the specified attribute for taxonomy field. |
int |
getChangeStamp()
Get change stamp of the record |
int |
getCheckoutStatus()
Get checkout status |
java.lang.String |
getDefaultRegionCode()
Returns the default region code. |
java.lang.String |
getDisplayValue()
Get display value of this record. |
FieldId[] |
getFields()
Get array of field IDs for all populated records. |
MdmValue |
getFieldValue(FieldId fieldId)
Get value of the specified field. |
RecordId |
getId()
Get record ID |
java.lang.String |
getLookupDisplayValue(FieldId lookupFieldId)
Returns display value for lookup field |
int |
getMatrixType()
Returns the matrix type. |
TableSchema |
getMetadata()
Get metadata of table the current record belongs to. |
int |
getModificationStatus()
Get modification status (NEW, MODIFIED, UNMODIFIED) |
MultiregionValue |
getMultiregionFieldValue(FieldId fieldId)
Get multi-region value of the specified field. |
TableId |
getTable()
Get ID of the table the current record belongs to. |
boolean |
isProtected()
Check if the this record is protected |
boolean |
isTaxonomyField(FieldId fieldId)
Returns true if specified field is taxonomy field |
void |
setAttributeValue(FieldId taxonomyFieldId,
AttributeId attrId,
MdmValue value)
Set new value to the specified attribute for taxonomy field. |
void |
setFieldValue(FieldId fieldId,
MdmValue value)
Set new value to the specified field. |
void |
setMatrixType(int matrixType)
Sets the matrix type. |
| Method Detail |
public RecordId getId()
public TableId getTable()
public int getChangeStamp()
public TableSchema getMetadata()
public java.lang.String getDisplayValue()
public boolean isProtected()
public int getCheckoutStatus()
Record.CheckoutStatuspublic int getMatrixType()
Record.MatrixTypepublic void setMatrixType(int matrixType)
Record.MatrixType.ORDINARY.
matrixType - a matrix typepublic int getModificationStatus()
public FieldId[] getFields()
public MdmValue getFieldValue(FieldId fieldId)
throws java.lang.IllegalArgumentException
fieldId - field ID
java.lang.IllegalArgumentException - if field with specified ID does not exist or was not populated
public void setFieldValue(FieldId fieldId,
MdmValue value)
throws java.lang.IllegalArgumentException,
MdmValueTypeException
fieldId - field IDvalue - new field value
java.lang.IllegalArgumentException - if field with specified ID does not exist
MdmValueTypeException - if there is mismatch between field type and type of value
public MultiregionValue getMultiregionFieldValue(FieldId fieldId)
throws java.lang.IllegalArgumentException
fieldId - field ID
java.lang.IllegalArgumentException - if field with specified ID does not exist or was not populatedpublic java.lang.String getDefaultRegionCode()
public Record[] findLookupRecords(FieldId lookupFieldId)
throws java.lang.IllegalArgumentException
lookupFieldId - ID of lookup field
java.lang.IllegalArgumentException - if field with specified ID does not exist or
was not populated or is not lookup field
public java.lang.String getLookupDisplayValue(FieldId lookupFieldId)
throws java.lang.IllegalArgumentException
lookupFieldId - ID of lookup field
java.lang.IllegalArgumentException - if field with specified ID does not exist or
was not populated or is not lookup fieldpublic boolean isTaxonomyField(FieldId fieldId)
fieldId - field ID
public boolean containsField(FieldId fieldId)
fieldId - field ID
public AttributeId[] getAttributes(FieldId taxonomyFieldId)
throws java.lang.IllegalArgumentException
taxonomyFieldId - taxonomy field ID
java.lang.IllegalArgumentException - if field was not populated or field is not taxonomy field
public MdmValue getAttributeValue(FieldId taxonomyFieldId,
AttributeId attrId)
throws java.lang.IllegalArgumentException
taxonomyFieldId - taxonomy field IDattrId - attribute ID
java.lang.IllegalArgumentException - if field or attribute with specified ID was not populated or
field is not taxonomy field
public void setAttributeValue(FieldId taxonomyFieldId,
AttributeId attrId,
MdmValue value)
throws java.lang.IllegalArgumentException,
MdmValueTypeException
taxonomyFieldId - taxonomy field IDattrId - attribute IDvalue - new attribute value
java.lang.IllegalArgumentException - if field or attribute with specified ID was not populated or
field is not taxonomy field
MdmValueTypeException - if there is mismatch between attribute type and type of value
public boolean containsAttribute(FieldId taxonomyFieldId,
AttributeId attrId)
taxonomyFieldId - field IDattrId - attribute ID
public java.lang.Object clone()
java.lang.Object#clone()
|
|||||||||||
| 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.