Chapter 9 Working with Object-Oriented Models
The return type for find<METHOD> methods must be the bean component interface type (for a single-object finder) or a collection of primary keys thereof (for a multi-object finder). The throws clause must include the javax.ejb.FinderException.
Manual correction | Automatic correction |
---|---|
Include the javax.ejb.FinderException in the throws clause | Includes the javax.ejb.FinderException in the throws clause, and sets Return Type to be the component interface type |
The following check applies to BPM Entity Beans only.
The throws clause must include all exceptions defined in the throws clause of the matching ejbFind<METHOD> methods of the Bean class.
Manual correction | Automatic correction |
---|---|
Include all exceptions defined in the throws clause of the matching ejbFind<METHOD> methods of the Bean class, or remove exceptions from the ejbFind<METHOD> method | Includes all exceptions defined in the throws clause of the matching ejbFind<METHOD> methods of the Bean class |
Copyright (C) 2006. Sybase Inc. All rights reserved. |
![]() |