|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.data.Relationship
This class represents relationship between two records where one of them is defined as anchor record
RelationshipProperties,
RelationshipGroup| Constructor Summary | |
Relationship(int type,
RecordId anchorRecordId,
RecordId memberRecordId,
boolean hasQuantity,
int quantity,
boolean hasRequired,
boolean isRequired)
Constructs with the specified parameters. |
|
Relationship(int type,
Record anchorRecord,
Record memberRecord,
boolean hasQuantity,
int quantity,
boolean hasRequired,
boolean isRequired)
Constructs with the specified parameters. |
|
Relationship(Relationship other)
Copy constructor |
|
| Method Summary | |
Object |
clone()
Returns a clone. |
boolean |
equals(Object obj)
|
Record |
getAnchorRecord()
Get anchor record in this relationship |
RecordId |
getAnchorRecordId()
Get ID of the anchor record in this relationship |
Record |
getMemberRecord()
Get member record in this relationship |
RecordId |
getMemberRecordId()
Get ID of the member record in this relationship |
int |
getQuantity()
Get quantity of this relationship member |
int |
getType()
Get type of this relationship |
int |
hashCode()
|
boolean |
hasQuantity()
Specify if this relationship member has 'quantity' parameter |
boolean |
hasREquired()
Specify if this relationship member has 'required' parameter |
boolean |
isRequired()
Specify if this relationship member is required |
void |
setHasQuantity(boolean hasQuantity)
Define if this relationship member has 'quantity' parameter |
void |
setHasRequired(boolean hasRequired)
Define if this relationship member has 'required' parameter |
void |
setQuantity(int quantity)
Set quantity of this relationship member |
void |
setRequired(boolean isRequired)
Set if this relationship member is required |
String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Relationship(int type,
RecordId anchorRecordId,
RecordId memberRecordId,
boolean hasQuantity,
int quantity,
boolean hasRequired,
boolean isRequired)
type - the relationship typeanchorRecordId - the anchor record IdmemberRecordId - the member record IdhasQuantity - whether it has a quantityquantity - the quantity valuehasRequired - whether it has the requiredisRequired - the required value
public Relationship(int type,
Record anchorRecord,
Record memberRecord,
boolean hasQuantity,
int quantity,
boolean hasRequired,
boolean isRequired)
type - the relationship typeanchorRecord - the anchor recordmemberRecord - the member recordhasQuantity - whether it has a quantityquantity - the quantity valuehasRequired - whether it has the requiredisRequired - the required valuepublic Relationship(Relationship other)
other - relationship| Method Detail |
public int getType()
RelationshipPropertiespublic RecordId getAnchorRecordId()
public RecordId getMemberRecordId()
public Record getAnchorRecord()
public Record getMemberRecord()
public boolean hasQuantity()
public void setHasQuantity(boolean hasQuantity)
hasQuantity - public int getQuantity()
public void setQuantity(int quantity)
quantity - quantitypublic boolean hasREquired()
public void setHasRequired(boolean hasRequired)
hasRequired - public boolean isRequired()
public void setRequired(boolean isRequired)
isRequired - specify if this relationship member is requiredpublic int hashCode()
public boolean equals(Object obj)
public String toString()
public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.