1 22 package org.jboss.test.proxycompiler.beans.ejb; 24 import java.rmi.RemoteException ; 25 26 import javax.ejb.EntityBean ; 27 28 import javax.ejb.EntityContext ; 29 import javax.ejb.CreateException ; 30 31 import org.jboss.test.proxycompiler.Util; 32 33 53 54 public abstract class ProxyCompilerTestBean implements EntityBean 55 { 56 public ProxyCompilerTestBean () 57 { 58 59 } 60 61 64 public Integer ejbCreate(Integer pk) 65 throws CreateException 66 { 67 setPk(pk); 68 return pk; 69 } 70 71 public void ejbPostCreate(Integer pk) 72 { 73 } 74 75 79 public abstract Integer getPk(); 80 81 84 public abstract void setPk(Integer pk); 85 86 90 public abstract boolean getBool(); 91 92 95 public abstract void setBool(boolean arg); 96 97 101 public abstract byte getByte(); 102 103 106 public abstract void setByte(byte arg); 107 108 112 public abstract char getChar(); 113 114 117 public abstract void setChar(char arg); 118 119 123 public abstract double getDouble(); 124 125 128 public abstract void setDouble(double arg); 129 130 134 public abstract float getFloat(); 135 136 139 public abstract void setFloat(float arg); 140 141 145 public abstract int getInt(); 146 147 150 public abstract void setInt(int arg); 151 152 156 public abstract long getLong(); 157 158 161 public abstract void setLong(long arg); 162 163 167 public abstract short getShort(); 168 169 172 public abstract void setShort(short arg); 173 174 178 public abstract Object [] getObjectArray(); 179 180 183 public abstract void setObjectArray(Object [] arg); 184 185 189 public abstract int[] getIntArray(); 190 191 194 public abstract void setIntArray(int[] arg); 195 196 199 public boolean noArgsMethod() { 200 return true; 201 } 202 203 206 public String complexSignatureMethod(int i, Object ref, int[] ints, Object [] objectRefs) { 207 return Util.getStringRepresentation(i, ref, ints, objectRefs); 208 } 209 210 public void ejbActivate() throws RemoteException 211 { 212 } 213 214 public void ejbPassivate() throws RemoteException 215 { 216 } 217 218 public void ejbLoad() throws RemoteException 219 { 220 } 221 222 public void ejbStore() throws RemoteException 223 { 224 } 225 226 public void ejbRemove() throws RemoteException 227 { 228 } 229 230 public void setEntityContext(EntityContext ctx) throws RemoteException 231 { 232 } 233 234 public void unsetEntityContext() throws RemoteException 235 { 236 } 237 238 } | Popular Tags |