1 package test.ejb; 2 3 import test.dao.*; 4 import test.interfaces.CustomerData; 5 import test.interfaces.CustomerPK; 6 import test.interfaces.CustomerNormalValue; 7 8 import java.util.*; 9 import javax.ejb.*; 10 11 57 public abstract class CustomerBMPBean 58 extends CustomerBean 59 { 60 61 64 public Object ejbCreate(CustomerData detail) 65 throws CreateException 66 { 67 throw new IllegalStateException ("Creation of Customer is not possible"); 68 } 69 70 public void ejbPostCreate(CustomerData detail) {} 71 72 75 public Object ejbCreate(CustomerNormalValue detail) 76 throws CreateException 77 { 78 throw new IllegalStateException ("Creation of Customer is not possible"); 79 } 80 81 public abstract Collection ejbFindAll() 82 throws FinderException; 83 84 public abstract CustomerPK ejbFindByPrimaryKey(CustomerPK pk) 85 throws FinderException; 86 87 91 public void ejbHomeCopyToArchive(CustomerPK pk) 92 { 93 } 95 96 } 97 | Popular Tags |