Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 11 12 package freeforums.message; 13 14 import java.rmi.RemoteException ; 15 import javax.ejb.*; 16 17 public class ReadMessageBean implements EntityBean { 18 19 transient private EntityContext context; 20 21 public ReadMessagePK key; 22 23 public ReadMessagePK ejbCreate(ReadMessagePK key) { 24 25 this.key = key; 26 return null; 27 28 } 29 30 public void ejbPostCreate(ReadMessagePK key) { } 31 32 public void setEntityContext(EntityContext context) { this.context = context; } 33 34 public void unsetEntityContext() { context = null; } 35 36 public void ejbActivate() { } 37 public void ejbPassivate() { } 38 public void ejbLoad() { } 39 public void ejbStore() { } 40 public void ejbRemove() { } 41 42 45 46 public String getUserName() throws RemoteException { return key.userName; } 47 public void setUserName(String userName) throws RemoteException { key.userName = userName; } 48 49 public Integer getMessageID() throws RemoteException { return key.messageID; } 50 public void setMessageID(Integer messageID) throws RemoteException { key.messageID = messageID; } 51 52 } 53 54
| Popular Tags
|