Previous Topic: How You Delete an ObjectNext Topic: Example: Calling doDeleteAssocs() Methods Inside the doDelete and doModifyRn


Example: Implementing doDeleteAssocs

The following is an example of how you implement doDeleteAssocs:

    public void doDeleteAssocs(final ObjectInfo objInfo, final Object context) throws NamingException
    {
        doAssocUpdateReferencesTo(objInfo, null, connector);
    }

This command has the following format:

objInfo

Specifies the object modified or deleted.

context

(Optional) Provides additional context for the requested updates. For example, transactional connectors may want the updates of the associative relationships to occur within a larger transaction.

The method following method constructs the search filter and invokes the doSearch method of this connector’s attribute-style processor to retrieve the associative objects (for example, Account):

com.ca.jcs.assoc.DefaultAssocDirectAttributeOpProcessor.doAssocUpdateReferencesTo()

It then constructs the modification item and invokes the doModify() method to update the associative attribute for the associative object (group members attribute in the Account).