com.sap.mdm.data
Class KeyMappingFactory

java.lang.Object
  extended bycom.sap.mdm.data.KeyMappingFactory

public class KeyMappingFactory
extends Object

The KeyMappingFactory is factory class responsible for creation of a new instances of KeyMapping and KeyMappingSet instances on the client side. These instances can be used for creation and updating record and attribute key mapping.

See Also:
ModifyRecordsKeyMappingsCommand, ModifyAttributesKeyMappingsCommand

Method Summary
static AttributeKeyMapping createAttributeKeyMapping(AttributeKeyMapping other)
          Creates a new attribute key mapping set as copy of another attribute key mapping
static AttributeKeyMapping createAttributeKeyMapping(TableId taxonomyTableId, AttributeId attributeId, TextAttributeValueId attributeValueId)
          Creates a new empty key mapping set for the specified text value of the specified attribute
static AttributeKeyMapping createAttributeKeyMapping(TableId taxonomyTableId, AttributeId attributeId, TextAttributeValueId attributeValueId, KeyMapping[] keyMappings)
          Creates a new key mapping set for the specified text value of the specified attribute filled with set of key mappings
static KeyMapping createKeyMapping(KeyMapping other)
          Creates a new key mapping as copy of the specified existing key mapping
static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId)
          Creates a new empty key mapping for the specified remote system
static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId, String[] keys)
          Creates a new key mapping for the specified remote system filled with set of keys
static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId, String[] keys, String defaultKey)
          Creates a new key mapping for the specified remote system filled with set of keys and with specified default key
static RecordKeyMapping createRecordKeyMapping(RecordKeyMapping other)
          Creates a new record key mapping set as copy of another record key mapping
static RecordKeyMapping createRecordKeyMapping(TableId tableId, RecordId recordId)
          Creates a new empty key mapping set for the specified record
static RecordKeyMapping createRecordKeyMapping(TableId tableId, RecordId recordId, KeyMapping[] keyMappings)
          Creates a new key mapping set for the specified record filled with set of key mappings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createKeyMapping

public static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId)
Creates a new empty key mapping for the specified remote system

Parameters:
remoteSystemId - remote system ID
Returns:
instance of KeyMapping

createKeyMapping

public static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId,
                                          String[] keys)
Creates a new key mapping for the specified remote system filled with set of keys

Parameters:
remoteSystemId - remote system ID
keys - set of initial keys
Returns:
instance of KeyMapping

createKeyMapping

public static KeyMapping createKeyMapping(RemoteSystemId remoteSystemId,
                                          String[] keys,
                                          String defaultKey)
Creates a new key mapping for the specified remote system filled with set of keys and with specified default key

Parameters:
remoteSystemId - remote system ID
keys - set of initial keys
defaultKey - value of default key
Returns:
instance of KeyMapping

createKeyMapping

public static KeyMapping createKeyMapping(KeyMapping other)
Creates a new key mapping as copy of the specified existing key mapping

Parameters:
other - existing key mapping
Returns:
instance of KeyMapping

createRecordKeyMapping

public static RecordKeyMapping createRecordKeyMapping(TableId tableId,
                                                      RecordId recordId)
Creates a new empty key mapping set for the specified record

Parameters:
tableId - the table ID
recordId - the record ID
Returns:
instance of RecordKeyMapping

createRecordKeyMapping

public static RecordKeyMapping createRecordKeyMapping(TableId tableId,
                                                      RecordId recordId,
                                                      KeyMapping[] keyMappings)
Creates a new key mapping set for the specified record filled with set of key mappings

Parameters:
tableId - the table ID
recordId - the record ID
keyMappings - array of key mappings
Returns:
instance of RecordKeyMapping

createRecordKeyMapping

public static RecordKeyMapping createRecordKeyMapping(RecordKeyMapping other)
Creates a new record key mapping set as copy of another record key mapping

Parameters:
other - existing record key mapping
Returns:
instance of RecordKeyMapping

createAttributeKeyMapping

public static AttributeKeyMapping createAttributeKeyMapping(TableId taxonomyTableId,
                                                            AttributeId attributeId,
                                                            TextAttributeValueId attributeValueId)
Creates a new empty key mapping set for the specified text value of the specified attribute

Parameters:
taxonomyTableId - the ID of taxonomy table
attributeId - the attribute ID
attributeValueId - ID of text attribute value
Returns:
instance of AttributeKeyMapping

createAttributeKeyMapping

public static AttributeKeyMapping createAttributeKeyMapping(TableId taxonomyTableId,
                                                            AttributeId attributeId,
                                                            TextAttributeValueId attributeValueId,
                                                            KeyMapping[] keyMappings)
Creates a new key mapping set for the specified text value of the specified attribute filled with set of key mappings

Parameters:
taxonomyTableId - the ID of taxonomy table
attributeId - the attribute ID
attributeValueId - ID of text attribute value
keyMappings - array of key mappings
Returns:
instance of AttributeKeyMapping

createAttributeKeyMapping

public static AttributeKeyMapping createAttributeKeyMapping(AttributeKeyMapping other)
Creates a new attribute key mapping set as copy of another attribute key mapping

Parameters:
other - existing attribute key mapping
Returns:
instance of AttributeKeyMapping


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.