Entity Beans Without Create Methods

If an entity bean is never meant to be created by a client, you can simply not implement a create() method on the home interface. This means that the entity in question can be obtained only by using the find() methods on the home interface. Titan might implement this strategy with their Ship beans, so that new Ships must be created by directly inserting records into the database—a privilege that might be reserved for the database administrator (they wouldn’t want some crazed travel agent inserting random ships into their cruise line).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset