Line 01 |
The ejbFindByPrimaryKey() is invoked by the container when the home interface findByPrimaryKey() is invoked. |
Line 04 | selectByPrimaryKey() invokes the JDBC code to find the row using the information in the primary key.It returns true if the row is found, otherwise it returns false. |
Line 05 | A row was found, so it returns the primary key to the container. |
Line 08 | No row was found, so it return the ObjectNotFoundException to the client. |
Lines 12-14 | If any exception is thrown by the JDBC code, it is caught and the EJBException is returned to the client. Notice that any message contained in the caught exception is passed back in the EJBException. |