com.sap.mdm.data
Class ParentChildMembership

java.lang.Object
  extended bycom.sap.mdm.data.RelationshipMembership
      extended bycom.sap.mdm.data.ParentChildMembership

public class ParentChildMembership
extends RelationshipMembership

Specifies a parent-child relationship.

Since:
5.5 SP6 Patch 01

Field Summary
 
Fields inherited from class com.sap.mdm.data.RelationshipMembership
PARENT_CHILD_RELATIONSHIP_TYPE, SIBLING_RELATIONSHIP_TYPE
 
Constructor Summary
ParentChildMembership(TableId tableId, RecordId recordId, RelationshipProperties relationship, int parentsCount, int childrenCount)
          Constructor with the specified parameters.
 
Method Summary
 int getChildrenCount()
          Returns the children count.
 int getParentsCount()
          Returns the parent count.
 int getType()
          Returns the relationship type.
 
Methods inherited from class com.sap.mdm.data.RelationshipMembership
getRecordId, getRelationships, getTableId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentChildMembership

public ParentChildMembership(TableId tableId,
                             RecordId recordId,
                             RelationshipProperties relationship,
                             int parentsCount,
                             int childrenCount)
Constructor with the specified parameters.

Parameters:
tableId - a table Id
recordId - a record Id
relationship - a relationship definition
parentsCount - parent count
childrenCount - children count
Method Detail

getType

public int getType()
Description copied from class: RelationshipMembership
Returns the relationship type.

Specified by:
getType in class RelationshipMembership
Returns:
a relationship type
See Also:
RelationshipMembership.PARENT_CHILD_RELATIONSHIP_TYPE, RelationshipMembership.SIBLING_RELATIONSHIP_TYPE

getParentsCount

public int getParentsCount()
Returns the parent count.

Returns:
a count

getChildrenCount

public int getChildrenCount()
Returns the children count.

Returns:
a count


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.