|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents group of relationships between the one anchor record and list of another records.
Relationship,
RelationshipProperties| Method Summary | |
void |
addMember(RecordId recordId,
int quantity,
boolean isRequired,
int position)
Add a new relationship member |
void |
addMember(Relationship member,
int position)
Add a new relationship member |
boolean |
containsMember(RecordId recordId)
Check if this relationship group contains member record with specified ID |
Record |
getAnchorRecord()
Get anchor record |
RecordId |
getAnchorRecordId()
Get ID of anchor record |
RelationshipId |
getId()
Get ID of this relationship |
Relationship |
getMember(int position)
Get member relationship on the specified position Is relevant only for 'Child' relationship. |
Relationship |
getMember(RecordId recordId)
Get member relationship for the specified record |
Record |
getMemberRecord(RecordId recordId)
Get related record with specified ID |
RecordId |
getMemberRecordId(int position)
Get member record ID on the specified position Is relevant only for parent/child relationship. |
RecordId[] |
getMemberRecordIds()
Get IDs for all records related to the anchor |
Relationship[] |
getMembers()
Get all relationship members |
int |
getMembersCount()
Get number of relationship members |
RelationshipProperties |
getMetadata()
Get metadata of relationship |
int |
getPosition(RecordId recordId)
Get position of the specified relationship member. |
int |
getQuantity(RecordId recordId)
Get quantity of the specified relationship member |
int |
getType()
Get type of this relationship group |
boolean |
isRequired(RecordId recordId)
Specify if the specified relationship member is required |
Relationship |
removeMember(int position)
Remove the relationship member at specified position Is relevant only for 'Child' relationship. |
Relationship |
removeMember(RecordId recordId)
Remove the specified relationship member |
void |
setPosition(RecordId recordId,
int position)
Set position of the specified relationship member. |
void |
setQuantity(RecordId recordId,
int quantity)
Set quantity of the specified relationship member |
void |
setRequired(RecordId recordId,
boolean isRequired)
Set if the specified relationship member is required |
| Method Detail |
public RelationshipId getId()
public int getType()
RelationshipPropertiespublic Record getAnchorRecord()
public RecordId getAnchorRecordId()
public int getMembersCount()
public Relationship[] getMembers()
Relationship instancespublic RecordId[] getMemberRecordIds()
public Relationship getMember(int position)
throws IllegalArgumentException
position - the position
IllegalArgumentException - if wrong position is specified
public Relationship getMember(RecordId recordId)
throws IllegalArgumentException
recordId - record ID
IllegalArgumentException - if member not exist
public RecordId getMemberRecordId(int position)
throws IllegalArgumentException
position - the position
IllegalArgumentException - if wrong position is specifiedpublic boolean containsMember(RecordId recordId)
recordId - ID of related record
public Record getMemberRecord(RecordId recordId)
throws IllegalArgumentException
recordId - ID of related record
IllegalArgumentException - if member not exist
public int getQuantity(RecordId recordId)
throws IllegalArgumentException
recordId - ID of related record
IllegalArgumentException - if member not exist
public void setQuantity(RecordId recordId,
int quantity)
throws IllegalArgumentException
recordId - ID of related recordquantity - quantity
IllegalArgumentException - if the member doesn't exist
public boolean isRequired(RecordId recordId)
throws IllegalArgumentException
recordId - ID of related record
IllegalArgumentException - if member not found
public void setRequired(RecordId recordId,
boolean isRequired)
throws IllegalArgumentException
recordId - ID of related recordisRequired - specify if this relationship member is required
IllegalArgumentException - if member not exist
public int getPosition(RecordId recordId)
throws IllegalArgumentException
recordId - ID of related record
IllegalArgumentException - if member not found
public void setPosition(RecordId recordId,
int position)
throws IllegalArgumentException
recordId - ID of related recordposition - new position of relationship member
IllegalArgumentException - if member not exist
public void addMember(RecordId recordId,
int quantity,
boolean isRequired,
int position)
throws IllegalArgumentException
recordId - ID of related recordquantity - quantityisRequired - position - position of relationship member or -1 in order to add to the end
(relevant only for 'Child' relationship that can have position,
for all other cases this parameter does not play a role)
IllegalArgumentException - if wrong position is specified
public void addMember(Relationship member,
int position)
throws IllegalArgumentException
member - relationship memberposition - position of relationship member or -1 in order to add to the end
(relevant only for 'Child' relationship that can have position,
for all other cases this parameter does not play a role)
IllegalArgumentException - if wrong position is specified
public Relationship removeMember(RecordId recordId)
throws IllegalArgumentException
recordId - ID of related record
IllegalArgumentException - if member not exist
public Relationship removeMember(int position)
throws IllegalArgumentException
position - the position
IllegalArgumentException - if wrong position is specifiedpublic RelationshipProperties getMetadata()
|
|||||||||||
| 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.