duplicate()

Create a business object (BusObj object) exactly like this one.

Syntax

BusObj duplicate()
 

Return values

The duplicate business object.

Exceptions

CollaborationException--The duplicate() method can set the following exception type for this exception: ObjectException.

Notes

This method makes a clone of the business object and returns it. You must explicitly assign the return value of this method call to a declared variable of BusObj type.

Examples

The following example duplicates sourceCustomer in order to create destCustomer.

BusObj destCustomer = sourceCustomer.duplicate();
 

Copyright IBM Corp. 1997, 2003