The connector supports the custom business object handler class, CustomBOH. It implements the JDBCBOhandlerInterface interface. The syntax of this interface is:
public interface JDBCBOhandlerInterface{ public int doVerbForCustom(CWConnectorBusObj busObj) throws VerbProcessingFailedException, ConnectionFailureException; }
When you implement the doVerbForCustom method, ensure that it throws but does not catch the two exceptions. Also set the status and message of each exception before throwing them.
To enable the connector to support this business object handler:
The connector obtains the name of the custom business object handler class from the verb application-specific information. Use the following syntax:
CustomBOH=customBOhandlerClassName
For example, assume the verb application-specific information is specified as follows:
CustomBOH=JDBCBOhandlerForOverrideSQL
In this case, JDBCBOhandlerForOverrideSQL is the name of the custom business object handler class.
If the connector finds "CustomBOH=" in the verb application-specific information and finds the class in the com.crossworlds.connectors.JDBC package, it executes the custom business object handler. If it does not find CustomBOH, it throws an error saying that it could not find the class.