1 22 package org.jboss.test.cmp2.ejbselect; 23 24 import java.util.Collection ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.EntityBean ; 27 import javax.ejb.EntityContext ; 28 import javax.ejb.FinderException ; 29 import javax.ejb.RemoveException ; 30 31 51 public abstract class BBean implements EntityBean 52 { 53 59 public abstract String getId(); 60 public abstract void setId(String id); 61 62 66 public abstract String getName(); 67 70 public abstract void setName(String name); 71 72 76 public abstract boolean getBool(); 77 80 public abstract void setBool(boolean bool); 81 82 86 public abstract long getLongField(); 87 90 public abstract void setLongField(long value); 91 92 103 public abstract ALocal getA(); 104 107 public abstract void setA(ALocal a); 108 109 111 114 public abstract Collection ejbSelectTrue() throws FinderException ; 115 116 119 public abstract Collection ejbSelectFalse() throws FinderException ; 120 121 125 public abstract Collection ejbSelectDynamic(String ql, Object [] params) throws FinderException ; 126 127 129 132 public Collection getTrue() throws FinderException 133 { 134 return ejbSelectTrue(); 135 } 136 137 140 public Collection getFalse() throws FinderException 141 { 142 return ejbSelectFalse(); 143 } 144 145 147 150 public Collection ejbHomeSelectDynamic(String ql, Object [] params) throws FinderException 151 { 152 return ejbSelectDynamic(ql, params); 153 } 154 155 158 public String ejbCreate(String id, String name, boolean bool) 159 throws CreateException 160 { 161 setId(id); 162 setName(name); 163 setBool(bool); 164 return null; 165 } 166 167 public void ejbPostCreate(String id, String name, boolean bool) {} 168 169 public void setEntityContext(EntityContext context) {} 170 public void unsetEntityContext() {} 171 public void ejbRemove() throws RemoveException {} 172 public void ejbActivate() {} 173 public void ejbPassivate() {} 174 public void ejbLoad() {} 175 public void ejbStore() {} 176 } 177 | Popular Tags |