home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / Applications / Layouts / EJBEntityTemplate.java next >
Encoding:
Java Source  |  1999-04-09  |  1.3 KB  |  69 lines

  1. import java.io.*;
  2. import java.net.*;
  3. import java.util.*;
  4. import javax.ejb.*;
  5. import java.rmi.*;
  6.  
  7. /**
  8.  * Class to represent an Entity Bean.
  9.  */
  10. public class EJBSessionTemplate implements EntityBean {
  11.  
  12.     /*
  13.      * The session context for this session Bean
  14.      */
  15.     EntityContext ctx;
  16.  
  17.     /**
  18.      * The activate method is called when the instance is activated from its "passive" state.
  19.      */
  20.     public void ejbActivate() throws RemoteException {
  21.  
  22.     }
  23.  
  24.     /**
  25.      * Initialise this Entity bean from the database.
  26.      */
  27.     public void ejbLoad() throws RemoteException {
  28.  
  29.     }
  30.  
  31.     /**
  32.      * Store the state of this bean to the database.
  33.      */
  34.     public void ejbStore() throws RemoteException {
  35.  
  36.     }
  37.  
  38.     /**
  39.      * The passivate method is called before the instance enters the "passive" state. 
  40.      */
  41.     public void ejbPassivate() throws RemoteException {
  42.  
  43.     }
  44.  
  45.     /**
  46.      * Called before the life of the session object is ended. 
  47.      */
  48.     public void ejbRemove() throws RemoteException {
  49.  
  50.     }
  51.  
  52.     /**
  53.      * Set the associated entity context.
  54.      */
  55.     public void setEntityContext(EntityContext ctx) throws RemoteException {
  56.  
  57.         this.ctx = ctx;
  58.     }
  59.  
  60.     /**
  61.      * Unset the associated entity context.
  62.      */
  63.     public void unsetEntityContext() throws RemoteException {
  64.  
  65.         this.ctx = null;
  66.     }
  67.  
  68. }
  69.