start page | rating of books | rating of authors | reviews | copyrights

Book Home Enterprise JavaBeans Search this book

9.6. 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 only be obtained 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 a record 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.



Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.