1 22 package org.jboss.test.ejbconf.beans.ejb; 24 import java.rmi.RemoteException ; 25 26 import javax.ejb.CreateException ; 27 import javax.ejb.EntityBean ; 28 import javax.ejb.EntityContext ; 29 30 51 52 public abstract class ReadOnlyBean implements EntityBean 53 { 54 public ReadOnlyBean () 55 { 56 57 } 58 59 67 public Integer ejbCreate(Integer id, Integer value) throws CreateException 68 { 69 setId(id); 70 setValue(value); 71 return null; 72 } 73 74 public void ejbPostCreate(Integer id, Integer value) 75 { 76 } 77 78 79 85 public abstract Integer getId(); 86 87 88 92 public abstract void setId(Integer id); 93 94 95 101 public abstract Integer getValue(); 102 103 108 public abstract void setValue(Integer value); 109 110 111 public void ejbActivate() throws RemoteException 112 { 113 } 114 115 public void ejbPassivate() throws RemoteException 116 { 117 } 118 119 public void ejbLoad() throws RemoteException 120 { 121 } 122 123 public void ejbStore() throws RemoteException 124 { 125 } 126 127 public void ejbRemove() throws RemoteException 128 { 129 } 130 131 public void setEntityContext(EntityContext ctx) throws RemoteException 132 { 133 } 134 135 public void unsetEntityContext() throws RemoteException 136 { 137 } 138 139 } | Popular Tags |