com.sap.mdm.valuetypes
Class MdmValueFactory

java.lang.Object
  extended bycom.sap.mdm.valuetypes.MdmValueFactory

public class MdmValueFactory
extends Object

This class is a factory class for creating instances of MdmValue.


Constructor Summary
MdmValueFactory()
           
 
Method Summary
static BooleanValue createBooleanValue(boolean value)
          Creates MDM BooleanValue
static BooleanValue createBooleanValue(Boolean value)
           
static BooleanValue createBooleanValue(String value)
           
static IntegerValue createIntegerValue(int value)
          Creates MDM IntegerValue
static IntegerValue createIntegerValue(Integer value)
           
static IntegerValue createIntegerValue(String value)
           
static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkId linkId, RecordId lookupId)
          Create qualified link corresponded to the existing link in the repository
static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkId linkId, RecordId lookupId, Map qualifiers)
          Create qualified link corresponded to the existing link in the repository and populated with qualifier values
static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkValue link)
          Create new qualified link as copy of another qualified link.
static QualifiedLinkValue createQualifiedLinkValue(RecordId lookupId)
          Create new qualified link
static QualifiedLinkValue createQualifiedLinkValue(RecordId lookupId, Map qualifiers)
          Create new qualified link populated with qualifier values
static TupleValue createTupleValue()
          Creates a new tuple value.
static TupleValue createTupleValue(TupleRecordId tupleId)
          Creates a new tuple value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdmValueFactory

public MdmValueFactory()
Method Detail

createBooleanValue

public static BooleanValue createBooleanValue(boolean value)
Creates MDM BooleanValue

Parameters:
value -
Returns:
a boolean value

createBooleanValue

public static BooleanValue createBooleanValue(Boolean value)

createBooleanValue

public static BooleanValue createBooleanValue(String value)

createIntegerValue

public static IntegerValue createIntegerValue(int value)
Creates MDM IntegerValue

Parameters:
value -
Returns:
an integer value

createIntegerValue

public static IntegerValue createIntegerValue(Integer value)

createIntegerValue

public static IntegerValue createIntegerValue(String value)
                                       throws MdmValueFormatException
Throws:
MdmValueFormatException

createQualifiedLinkValue

public static QualifiedLinkValue createQualifiedLinkValue(RecordId lookupId)
Create new qualified link

Parameters:
lookupId - ID of lookup record that defines the new qualified link
Returns:
instance of QualifiedLinkValue

createQualifiedLinkValue

public static QualifiedLinkValue createQualifiedLinkValue(RecordId lookupId,
                                                          Map qualifiers)
Create new qualified link populated with qualifier values

Parameters:
lookupId - ID of lookup record that defines the new qualified link
qualifiers - map of qualifier field values. Key of map is ID of qualifier field. If qualifier field values are not known they should be populated to MdmNull values
Returns:
instance of QualifiedLinkValue

createQualifiedLinkValue

public static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkId linkId,
                                                          RecordId lookupId)
Create qualified link corresponded to the existing link in the repository

Parameters:
linkId - ID of qualified link.
lookupId - ID of lookup record that defines the new qualified link.
Returns:
instance of QualifiedLinkValue

createQualifiedLinkValue

public static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkId linkId,
                                                          RecordId lookupId,
                                                          Map qualifiers)
Create qualified link corresponded to the existing link in the repository and populated with qualifier values

Parameters:
linkId - ID of qualified link.
lookupId - ID of lookup record that defines the new qualified link.
qualifiers - map of qualifier field values. Key of map is ID of qualifier field. If qualifier field values are not known they should be populated to MdmNull values
Returns:
instance of QualifiedLinkValue

createQualifiedLinkValue

public static QualifiedLinkValue createQualifiedLinkValue(QualifiedLinkValue link)
Create new qualified link as copy of another qualified link.

Parameters:
link - another qualified link.
Returns:
instance of QualifiedLinkValue

createTupleValue

public static TupleValue createTupleValue()
Creates a new tuple value.

Returns:
a new tuple value
Since:
7.1

createTupleValue

public static TupleValue createTupleValue(TupleRecordId tupleId)
Creates a new tuple value.

Parameters:
tupleId - a tuple Id
Returns:
a new tuple value
Since:
7.1


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.