1 2 package test.ejb; 3 4 import test.interfaces.AllTypesEntityUtil; 5 6 import javax.ejb.EntityBean ; 7 import javax.ejb.EntityContext ; 8 import javax.ejb.CreateException ; 9 import javax.ejb.RemoveException ; 10 import java.rmi.RemoteException ; 11 import java.util.Date ; 12 13 29 public abstract class AllTypesEntityBean extends BaseEntityBean implements EntityBean { 30 31 public String ejbCreate(boolean aBoolean, byte aByte, short aShort, char aChar, int anInt) throws CreateException { 32 setId(AllTypesEntityUtil.generateGUID(this)); 34 35 setABoolean(aBoolean); 36 setAByte(aByte); 37 setAShort(aShort); 38 setAChar(aChar); 39 setAnInt(anInt); 40 41 return null; 42 } 43 44 public void ejbPostCreate(boolean aBoolean, byte aByte, short aShort, char aChar, int anInt) throws CreateException { 45 } 46 51 public abstract int[] getIVOwnerHdl(); 52 public abstract void setVOwnerHdl(int[] bb); 53 60 public abstract String getId(); 61 62 70 public abstract void setId(String id); 71 72 80 public abstract boolean getABoolean(); 81 82 87 public abstract void setABoolean(boolean aBoolean); 88 89 97 public abstract byte getAByte(); 98 99 104 public abstract void setAByte(byte aByte); 105 106 114 public abstract short getAShort(); 115 116 121 public abstract void setAShort(short aShort); 122 123 131 public abstract char getAChar(); 132 133 138 public abstract void setAChar(char aChar); 139 140 148 public abstract int getAnInt(); 149 150 155 public abstract void setAnInt(int anInt); 156 157 165 public abstract long getALong(); 166 167 172 public abstract void setALong(long aLong); 173 174 182 public abstract float getAFloat(); 183 184 189 public abstract void setAFloat(float aFloat); 190 191 199 public abstract double getADouble(); 200 201 206 public abstract void setADouble(double aDouble); 207 208 218 public abstract Object getAnObject(); 219 220 225 public abstract void setAnObject(Object anObject); 226 227 235 public abstract Object [] getAnObjectArray(); 236 237 242 public abstract void setAnObjectArray(Object [] anObjectArray); 243 244 252 public abstract boolean[] getABooleanArray(); 253 254 259 public abstract void setABooleanArray(boolean[] aBooleanArray); 260 261 269 public abstract byte[] getAByteArray(); 270 271 276 public abstract void setAByteArray(byte[] aByteArray); 277 278 286 public abstract char[] getACharArray(); 287 288 293 public abstract void setACharArray(char[] aCharArray); 294 295 303 public abstract short[] getAShortArray(); 304 305 310 public abstract void setAShortArray(short[] aShortArray); 311 312 320 public abstract int[] getAnIntArray(); 321 322 327 public abstract void setAnIntArray(int[] anIntArray); 328 329 337 public abstract long[] getALongArray(); 338 339 344 public abstract void setALongArray(long[] aLongArray); 345 346 354 public abstract float[] getAFloatArray(); 355 356 361 public abstract void setAFloatArray(float[] aFloatArray); 362 363 371 public abstract double[] getADoubleArray(); 372 373 378 public abstract void setADoubleArray(double[] aDoubleArray); 379 } | Popular Tags |