1 22 package org.jboss.test.cmp2.jbas1665; 23 24 25 import java.util.Collection ; 26 import javax.ejb.EntityBean ; 27 import javax.ejb.EntityContext ; 28 import javax.ejb.RemoveException ; 29 import javax.ejb.CreateException ; 30 import javax.ejb.FinderException ; 31 32 33 37 public abstract class OrderBean implements EntityBean 38 { 39 45 public abstract Integer getId(); 46 47 public abstract void setId(Integer id); 48 49 53 public abstract String getName(); 54 55 58 public abstract void setName(String name); 59 60 public abstract Collection ejbSelectSelect(String query, Object [] params) throws FinderException ; 61 62 public Collection ejbHomeSelect(String query, Object [] params) throws FinderException 63 { 64 return ejbSelectSelect(query, params); 65 } 66 67 71 public Integer ejbCreate(Integer id, String name) 72 throws CreateException 73 { 74 setId(id); 75 setName(name); 76 return null; 77 } 78 79 public void ejbPostCreate(Integer id, String name) 80 { 81 } 82 83 86 public void setEntityContext(EntityContext ctx) 87 { 88 } 89 90 93 public void unsetEntityContext() 94 { 95 } 96 97 public void ejbActivate() 98 { 99 } 100 101 public void ejbLoad() 102 { 103 } 104 105 public void ejbPassivate() 106 { 107 } 108 109 public void ejbRemove() throws RemoveException 110 { 111 } 112 113 public void ejbStore() 114 { 115 } 116 } 117 | Popular Tags |