
Interface which represents an OData association. In the following, some of the methods are described.
Method CREATE_REF_CONSTRAINT
This method returns a referential constraint object to map to entity types and specify the foreign key relationship.
|
Parameter |
Description |
|---|---|
|
IV_PRINCIPAL_IS_LEFT |
|
|
RO_REF_CONSTRAINT |
Instance to define a referential constraint. |
Method CREATE_ASSOC_SET
This method creates an AssociationSet for the association.
|
Parameter |
Description |
|---|---|
|
IV_ASSOC_SET_NAME |
AssociationSet name which is part of the service metadata document. |
|
RO_ASSOC_SET |
Instance to set further parameters of the AssociationSet. |
SET_LEFT_ON_DELETE_ACTION/SET_RIGHT_ON_DELETE_ACTION
These methods are available with 2272007
and provide information
for the client about deletion behavior. The actions
none and
cascade can be set for both ends of an
association.
For example, when deleting the entityType SalesOrder which has an association to the entityType SalesOrderItem, should the SalesOrderItem also be deleted automatically. In case of none, no SalesOrderItem will be deleted, and in case of cascade, the SalesOrderItems will be deleted.
|
Parameter |
Description |
|---|---|
|
IV_ON_DELETE_ACTION |