Basic HTML version of Foils prepared July 6 99

Foil 55 Container-Managed Persistence - II

From Object Web Computing Technologies CPS714 Computational Science Information Track -- June 16 99. by H. Timucin Ozdemir


Container performs the database insert after ejbCreate() method completes.
Since the bean provider does not know the primary key class, it returns null from ejbCreate() method. Container defines a primary key for this entity and associates an EJB Object before it calls the ejbPostCreate() method on the instance.
ejbRemove() method is invoked in respond to client-initiated remove() operation. Container removes the entity from data store after the completion of ejbRemove() call.
ejbLoad() method is called after the container synchronizes the fields in the instance from the data base. ejbStore() method is called by the container and it saves the fields of the instance after the completion of this call.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 6 1999