home *** CD-ROM | disk | FTP | other *** search
Java Source | 1999-04-09 | 1.3 KB | 69 lines |
- import java.io.*;
- import java.net.*;
- import java.util.*;
- import javax.ejb.*;
- import java.rmi.*;
-
- /**
- * Class to represent an Entity Bean.
- */
- public class EJBSessionTemplate implements EntityBean {
-
- /*
- * The session context for this session Bean
- */
- EntityContext ctx;
-
- /**
- * The activate method is called when the instance is activated from its "passive" state.
- */
- public void ejbActivate() throws RemoteException {
-
- }
-
- /**
- * Initialise this Entity bean from the database.
- */
- public void ejbLoad() throws RemoteException {
-
- }
-
- /**
- * Store the state of this bean to the database.
- */
- public void ejbStore() throws RemoteException {
-
- }
-
- /**
- * The passivate method is called before the instance enters the "passive" state.
- */
- public void ejbPassivate() throws RemoteException {
-
- }
-
- /**
- * Called before the life of the session object is ended.
- */
- public void ejbRemove() throws RemoteException {
-
- }
-
- /**
- * Set the associated entity context.
- */
- public void setEntityContext(EntityContext ctx) throws RemoteException {
-
- this.ctx = ctx;
- }
-
- /**
- * Unset the associated entity context.
- */
- public void unsetEntityContext() throws RemoteException {
-
- this.ctx = null;
- }
-
- }
-