com.sap.mdm.schema
Class RelationshipProperties

java.lang.Object
  extended bycom.sap.mdm.schema.RelationshipProperties
All Implemented Interfaces:
Cloneable, MetadataItem, NamedRepositoryItem, RepositoryItem

public class RelationshipProperties
extends Object
implements NamedRepositoryItem, MetadataItem

Defines a relationship. A relationship defines the type of relationship but does not specify any of the records that participate in that relationship. For each relationship defined, you specify the related products and/or non-products for each record.


Field Summary
static int CHILD
           
static int PARENT
           
static int PARENT_CHILD
           
static int SIBLING
           
 
Constructor Summary
RelationshipProperties(int type)
           
RelationshipProperties(RelationshipProperties other)
          Copy c'tor.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 TableId getChildTableId()
           
 String getCode()
          Returns a string identifier for a named repository object.
 RelationshipId getId()
           
 MultilingualString getName()
           
 TableId getParentTableId()
           
 int getPosition()
           
 TableId getSiblingTableId()
           
 MultilingualString getSubName()
           
 int getType()
           
 String getTypeName()
          Returns the relationship type as a string.
static String getTypeName(int type)
          Returns the relationship type as a string.
 int hashCode()
           
 boolean hasPosition()
           
 boolean hasQuantity()
           
 boolean hasRequired()
           
 boolean isNameIsParent()
           
 void setChildTableId(TableId childTableId)
           
 void setCode(String code)
           
 void setHasPosition(boolean hasPosition)
           
 void setHasQuantity(boolean hasQuantity)
           
 void setHasRequired(boolean hasRequired)
           
 void setId(RelationshipId id)
           
 void setName(MultilingualString name)
           
 void setNameIsParent(boolean nameIsParent)
           
 void setParentTableId(TableId parentTableId)
           
 void setPosition(int position)
           
 void setSiblingTableId(TableId siblingTableId)
           
 void setSubName(MultilingualString subName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PARENT_CHILD

public static final int PARENT_CHILD
See Also:
Constant Field Values

SIBLING

public static final int SIBLING
See Also:
Constant Field Values

CHILD

public static final int CHILD
See Also:
Constant Field Values

PARENT

public static final int PARENT
See Also:
Constant Field Values
Constructor Detail

RelationshipProperties

public RelationshipProperties(int type)

RelationshipProperties

public RelationshipProperties(RelationshipProperties other)
Copy c'tor. Creates deep copy of RelationshipProperties object.

Parameters:
other - Object to copy
Since:
7.2
Method Detail

getCode

public String getCode()
Description copied from interface: NamedRepositoryItem
Returns a string identifier for a named repository object.

Specified by:
getCode in interface NamedRepositoryItem
Returns:
the code name

setCode

public void setCode(String code)

getChildTableId

public TableId getChildTableId()

setChildTableId

public void setChildTableId(TableId childTableId)

getSiblingTableId

public TableId getSiblingTableId()

setSiblingTableId

public void setSiblingTableId(TableId siblingTableId)

hasPosition

public boolean hasPosition()

setHasPosition

public void setHasPosition(boolean hasPosition)

hasQuantity

public boolean hasQuantity()

setHasQuantity

public void setHasQuantity(boolean hasQuantity)

hasRequired

public boolean hasRequired()

setHasRequired

public void setHasRequired(boolean hasRequired)

getId

public RelationshipId getId()

setId

public void setId(RelationshipId id)

getName

public MultilingualString getName()

setName

public void setName(MultilingualString name)

isNameIsParent

public boolean isNameIsParent()

setNameIsParent

public void setNameIsParent(boolean nameIsParent)

getParentTableId

public TableId getParentTableId()

setParentTableId

public void setParentTableId(TableId parentTableId)

getPosition

public int getPosition()

setPosition

public void setPosition(int position)

getSubName

public MultilingualString getSubName()

setSubName

public void setSubName(MultilingualString subName)

getType

public int getType()

getTypeName

public String getTypeName()
Returns the relationship type as a string.

Returns:
the relationship type.

getTypeName

public static String getTypeName(int type)
Returns the relationship type as a string.

Parameters:
type - the relationship type
Returns:
the relationship type.

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()

clone

public Object clone()


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.