com.sap.mdm.schema
Class RelationshipProperties
java.lang.Object
com.sap.mdm.schema.RelationshipProperties
- All Implemented Interfaces:
- MetadataItem, NamedRepositoryItem, RepositoryItem
- public class RelationshipProperties
- extends java.lang.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.
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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
RelationshipProperties
public RelationshipProperties(int type)
getCode
public java.lang.String getCode()
- Specified by:
getCode in interface NamedRepositoryItem
setCode
public void setCode(java.lang.String code)
getChildTableId
public TableId getChildTableId()
setChildTableId
public void setChildTableId(TableId childTableId)
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 java.lang.String getTypeName()
- Returns the relationship type as a string.
- Returns:
- the relationship type.
getTypeName
public static java.lang.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(java.lang.Object obj)
toString
public java.lang.String toString()
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.