getType()

Retrieve the name of the business object definition on which this business object was based.

Syntax

String getType()
 

Return values

The name of a business object definition.

Notes

The type of a business object, in terms of this method, is the name of the business object definition from which the business object was created.

Returns

The following example retrieves the type of a business object called sourceShipTo.

String typeName = sourceShipTo.getType();
 

The following example copies a triggering event into a new business object of the appropriate type.

BusObj source = new BusObj(triggeringBusObj.getType());
 

Copyright IBM Corp. 2003