SEDRIS Reference Manual
APPENDIX A - LEVEL 0 READ and WRITE API
Functions
SE RemoveAssociateRelationship
extern SE_Status_Code
SE_RemoveAssociateRelationship
(
SE_Object from_object, (notes)
SE_Object to_object, (notes)
SE_Object link_object, (notes)
SE_Boolean remove_two_way (notes)
);

Definition

Breaks the relationship between from_object and to_object (and link_object, if given), but does notremove any of the objects involved from the transmittal (see SE_RemoveFromTransmittal()).

The transmittal whose object is to be edited must be explicitly opened in UPDATE mode for this operation to succeed.

Note that the relationship being removed may be 1-way or 2-way. If it is 2-way, and remove_two_way is true, both connections are broken, unless the to_object is unresolved.


Returns

SE_STAT_CODE_SUCCESS and the relationship is removed, if valid parameters were passed in and all operations succeeded.
SE_STAT_CODE_INVALID_OR_NULL_OBJECT and no changes are made, if
  1. from_object is not a valid, saved SEDRIS object,
  2. to_object is not a valid, saved SEDRIS object,
  3. link_object is provided, but is not a valid, saved SEDRIS object.
SE_STAT_CODE_UNRESOLVED_START_OBJECT and no changes are made, if
  1. from_object is unresolved, or
  2. link_object is provided but is unresolved.
SE_STAT_CODE_UNRESOLVED_OBJECT and no changes are made, if remove_two_way was specified, and the DRM defines the relationship as bidirectional, but to_object is unresolved, so the relationship from to_object to from_object cannot be removed.
SE_STAT_CODE_INVALID_ACCESS_MODE and no changes are made, if
  1. from_object is in a transmittal that is open in read-only mode,
  2. link_object was provided but is in a transmittal that is open in read-only mode, and / or
  3. to_object is resolved, has a relationship back to from_object and remove_two_way was specified, but to_object is in a transmittal that is open in read-only mode.
SE_STAT_CODE_FAILURE and no changes are made, if
  1. from_object and to_object are not related by an associate relationship,
  2. if link_object is provided, and it is not the link object for the relationship, or
  3. the API implementation specified does not provide this function in its shared library, and dynamic binding is specified at compile time.


Parameters Notes


from_object

 object whose relationship to one of its associates is being
    broken.

to_object

 object whose relationship from one of its associates (1-way
    or 2-way) is being broken.

link_object

 if specified, link object for the associate
    relationship being removed.

remove_two_way

 if the relationship is 2-way, and this flag is true,
    both connections are broken; otherwise, only one connection (from => to)
    is broken.


Prev: SE_PutPackedDataTableSubExtent. Next: SE_RemoveComponentRelationship. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™