1 22 package org.jboss.test.cmp2.optimisticlock.ejb; 23 24 import javax.ejb.EntityBean ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.RemoveException ; 27 import javax.ejb.EntityContext ; 28 29 48 public abstract class CmpEntityBean 49 implements EntityBean 50 { 51 private EntityContext ctx; 53 54 60 public abstract Integer getId(); 61 public abstract void setId(Integer id); 62 63 67 public abstract String getStringGroup1(); 68 71 public abstract void setStringGroup1(String stringField); 72 73 77 public abstract Integer getIntegerGroup1(); 78 81 public abstract void setIntegerGroup1(Integer value); 82 83 87 public abstract Double getDoubleGroup1(); 88 91 public abstract void setDoubleGroup1(Double value); 92 93 97 public abstract String getStringGroup2(); 98 101 public abstract void setStringGroup2(String stringField); 102 103 107 public abstract Integer getIntegerGroup2(); 108 111 public abstract void setIntegerGroup2(Integer value); 112 113 117 public abstract Double getDoubleGroup2(); 118 121 public abstract void setDoubleGroup2(Double value); 122 123 127 public abstract Long getVersionField(); 128 131 public abstract void setVersionField(Long value); 132 133 137 public Integer ejbCreate(Integer id, 138 String stringGroup1, 139 Integer integerGroup1, 140 Double doubleGroup1, 141 String stringGroup2, 142 Integer integerGroup2, 143 Double doubleGroup2) 144 throws CreateException 145 { 146 setId(id); 147 setStringGroup1(stringGroup1); 148 setIntegerGroup1(integerGroup1); 149 setDoubleGroup1(doubleGroup1); 150 setStringGroup2(stringGroup2); 151 setIntegerGroup2(integerGroup2); 152 setDoubleGroup2(doubleGroup2); 153 return null; 154 } 155 156 public void ejbPostCreate(Integer id, 157 String stringGroup1, 158 Integer integerGroup1, 159 Double doubleGroup1, 160 String stringGroup2, 161 Integer integerGroup2, 162 Double doubleGroup2) {} 163 164 public void ejbRemove() throws RemoveException 165 {} 166 167 public void setEntityContext(EntityContext ctx) 168 { 169 this.ctx = ctx; 170 } 171 172 public void unsetEntityContext() 173 { 174 this.ctx = null; 175 } 176 177 public void ejbActivate() {} 178 public void ejbPassivate() {} 179 public void ejbLoad() {} 180 public void ejbStore() {} 181 } 182 | Popular Tags |