BusinessObject

The BusinessObject class is used as an ancestor for all business objects used in the SAX parsing process. Whenever we use the Enterprise Curl design pattern, we have to provide a sub-class of BusinessObject, which is used as a container for the returned table or any error messages produced. Figure 11-20 shows the code required.

Figure 11-19. SAXHandler.get-return-table method listing.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|| Method:  get-return-table
|| Purpose: Will be over-ridden at the descendent
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{method public{get-return-table}:#ReturnTable
    let ret:#ReturnTable
    {return ret}
}
Figure 11-20. BusinessObject. class listing.
 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.