Delete operation

The delete operation is performed by pruning the incoming business object and then retrieving the complete business object from the database. The delete operation is then applied recursively on each business object in the hierarchy.

The delete operation supports physical and logical deletes, depending on the StatusColumnName value in the object’s application-specific information. If the StatusColumnName value is defined, the adapter performs a logical delete operation. If the StatusColumnName value is not defined, the adapter performs a physical delete operation.

For physical deletes the adapter takes the following actions:
  • It recursively deletes all multiple-cardinality child business objects.
  • It deletes the top-level business object.
  • It recursively deletes all single-cardinality child business objects contained with ownership.
For logical deletes the adapter takes the following actions:
  • It issues an Update that sets the business object’s status attribute to the value specified by the business object’s application-specific information. The adapter ensures that only one database row is updated as a result, and it returns an error if this is not the case.
  • It recursively logically deletes all single-cardinality children contained with ownership and all multiple-cardinality children. The adapter does not delete single-cardinality children contained without ownership.

Terms of use |

Last updated: Thu Mar 23 13:24:30 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)