1 22 package org.jboss.test.cmp2.commerce; 23 24 import java.util.Collection ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.CreateException ; 28 29 import org.jboss.varia.autonumber.AutoNumberFactory; 30 31 public abstract class ProductCategoryTypeBean implements EntityBean , ProductCategoryType 32 { 33 transient private EntityContext ctx; 34 35 public Long ejbCreate() throws CreateException 36 { 37 setId(new Long (AutoNumberFactory.getNextInteger("ProductCategoryType").longValue())); 38 return null; 39 } 40 41 public void ejbPostCreate() 42 { 43 } 44 45 public abstract void setId(Long id); 46 47 public abstract void setProductCategories(Collection girth); 48 49 public void setEntityContext(EntityContext ctx) 50 { 51 this.ctx = ctx; 52 } 53 54 public void unsetEntityContext() 55 { 56 this.ctx = null; 57 } 58 59 public void ejbActivate() 60 { 61 } 62 63 public void ejbPassivate() 64 { 65 } 66 67 public void ejbLoad() 68 { 69 } 70 71 public void ejbStore() 72 { 73 } 74 75 public void ejbRemove() 76 { 77 } 78 } 79 | Popular Tags |