com.sap.mdm.dataimport
Class QualifiedFieldImportDefinition

java.lang.Object
  extended bycom.sap.mdm.dataimport.FieldImportDefinition
      extended bycom.sap.mdm.dataimport.QualifiedFieldImportDefinition

public class QualifiedFieldImportDefinition
extends FieldImportDefinition

This class defines import parameters for qualified lookup field

Since:
MDM 7.1
See Also:
FieldImportDefinition

Constructor Summary
QualifiedFieldImportDefinition()
          Empty constructor
QualifiedFieldImportDefinition(int modifyType)
          Constructor
QualifiedFieldImportDefinition(QualifiedFieldImportDefinition qualFieldDef)
          Constructor
 
Method Summary
 void addMatchingQualifier(FieldId qualifierFieldId)
          Adds the specified qualifier field to the set of matching qualifier fields
 void addMatchingQualifier(FieldId qualifierFieldId, MdmValue qualifierValue)
          Adds the specified qualifier field to the set of matching qualifier fields
 FieldId[] getMatchingQualifiers()
          Gets matching qualifier fields
 MdmValue getMatchingQualifierValue(FieldId qualifierFieldId)
          Gets value of the specified matching qualifier field
 int getQualifierModifyType(FieldId qualifierFieldId)
          Gets modify type of the specified qualifier field
 FieldId[] getQualifiersForModifyType()
          Gets all qualifiers which modify type was set
 boolean isMatchedBySourceValues()
          Indicates if values of matching qualifiers should be taken from the source record or from this definition class.
 boolean isMergeLinks()
          Indicates if matched qualified links of the source should be merged before importing to repository.
 void setMergeLinks(boolean isMergeLinks)
          Specifies if matched qualified links of the source should be merged before importing to repository.
 void setQualifierModifyType(FieldId qualifierFieldId, int modifyType)
          Adds the modify type for the specified qualifier field
 
Methods inherited from class com.sap.mdm.dataimport.FieldImportDefinition
getModifyType, isModifyUnitOnly, setModifyType, setModifyUnitOnly
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QualifiedFieldImportDefinition

public QualifiedFieldImportDefinition()
Empty constructor


QualifiedFieldImportDefinition

public QualifiedFieldImportDefinition(int modifyType)
Constructor


QualifiedFieldImportDefinition

public QualifiedFieldImportDefinition(QualifiedFieldImportDefinition qualFieldDef)
Constructor

Method Detail

setQualifierModifyType

public void setQualifierModifyType(FieldId qualifierFieldId,
                                   int modifyType)
Adds the modify type for the specified qualifier field

Parameters:
qualifierFieldId - the qualifier field ID
modifyType - the modify type
See Also:
including constants for modify types

getQualifiersForModifyType

public FieldId[] getQualifiersForModifyType()
Gets all qualifiers which modify type was set

Returns:
the array of qualifier fields

getQualifierModifyType

public int getQualifierModifyType(FieldId qualifierFieldId)
Gets modify type of the specified qualifier field

Parameters:
qualifierFieldId - qualifier field ID
Returns:
the modify type of qualifier field
See Also:
including constants for modify types

isMergeLinks

public boolean isMergeLinks()
Indicates if matched qualified links of the source should be merged before importing to repository. Matching is done by ID of qualified lookup record and (optionally) by values of matching qualifier fields

Returns:
true if matched qualified links should be merged, false otherwise

setMergeLinks

public void setMergeLinks(boolean isMergeLinks)
Specifies if matched qualified links of the source should be merged before importing to repository. Matching is done by ID of qualified lookup record and (optionally) by values of matching qualifier fields The default value is true.

Parameters:
isMergeLinks - true if matched qualified links should be merged, false otherwise

addMatchingQualifier

public void addMatchingQualifier(FieldId qualifierFieldId)
Adds the specified qualifier field to the set of matching qualifier fields

Parameters:
qualifierFieldId - the qualifier field ID

addMatchingQualifier

public void addMatchingQualifier(FieldId qualifierFieldId,
                                 MdmValue qualifierValue)
Adds the specified qualifier field to the set of matching qualifier fields

Parameters:
qualifierFieldId - the qualifier field ID

isMatchedBySourceValues

public boolean isMatchedBySourceValues()
Indicates if values of matching qualifiers should be taken from the source record or from this definition class. The matching should be done by definition values only if: 1) MatchingQualifiedLinkOption is UPDATE_REPLACE and 2) Values are set for all matching qualifier fields

Returns:
true if matching qualifier values should be taken from the source, false matching values are specified in the QualifiedFieldImportDefinition class

getMatchingQualifiers

public FieldId[] getMatchingQualifiers()
Gets matching qualifier fields

Returns:
the array of matching qualifier fields

getMatchingQualifierValue

public MdmValue getMatchingQualifierValue(FieldId qualifierFieldId)
Gets value of the specified matching qualifier field

Returns:
the MdmValue of matching qualifier field


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.