1 package com.titan.cabin; 2 3 import javax.ejb.EntityContext ; 4 import javax.ejb.CreateException ; 5 6 public abstract class CabinBean 7 implements javax.ejb.EntityBean 8 { 9 10 public Integer ejbCreate(Integer id) throws CreateException 11 { 12 this.setId(id); 13 return null; 14 } 15 public void ejbPostCreate(Integer id) 16 { 17 } 18 public abstract void setId(Integer id); 19 public abstract Integer getId(); 20 21 public abstract void setShipId(int ship); 22 public abstract int getShipId( ); 23 24 public abstract void setName(String name); 25 public abstract String getName( ); 26 27 public abstract void setBedCount(int count); 28 public abstract int getBedCount(); 29 30 public abstract void setDeckLevel(int level); 31 public abstract int getDeckLevel(); 32 33 public void setEntityContext(EntityContext ctx) 34 { 35 } 37 public void unsetEntityContext() 38 { 39 } 41 public void ejbActivate() 42 { 43 } 45 public void ejbPassivate() 46 { 47 } 49 public void ejbLoad() 50 { 51 } 53 public void ejbStore() 54 { 55 } 57 public void ejbRemove() 58 { 59 } 61 } 62 | Popular Tags |