With the exception of Validate exit points whose parameters are described above, the parameters to an exit point method consist of the following:
- the parameters to the method to which the exit point belongs. (In fact if any extra parameters have been specified for a database operation in the model, this is the only place where the developer can access them.)
- the return type of the method to which the exit point belongs - if a return type is present.
Limitation: The return type parameter will not be included into the parameters of exit point methods for nsread and ns operations.
The following approach can be used to generate the return type parameter into the parameters of exit point methods for nsread and ns operations:
- Add an un-stereotyped method to the entity class giving it the same signature as the nsread or ns operation.
- Set the Post Data Access option on your nsread or ns operation to False.
- The implementation of your un-stereotyped operation will then call the nsread or ns operation, and will have access to its return value as required.
- for on-fail exit points, an exception class. This is the exception which was thrown from the data access layer. The exit point may handle the error or pass it on by throwing it.