1 7 package org.jboss.test.foedeployer.ejb.simple; 8 9 import javax.ejb.CreateException ; 10 import javax.ejb.EntityBean ; 11 import javax.ejb.EntityContext ; 12 import javax.ejb.RemoveException ; 13 14 39 public abstract class SecretBean 40 implements EntityBean 41 { 42 private EntityContext mContext; 44 45 61 public abstract String getSecretKey(); 62 public abstract void setSecretKey( String secretKey ); 63 64 76 public abstract String getSecret(); 77 80 public abstract void setSecret( String secret ); 81 82 86 public String ejbCreate( String secretKey, String secret ) 87 throws CreateException 88 { 89 setSecretKey(secretKey); 90 setSecret(secret); 91 return null; 92 } 93 94 public void ejbPostCreate( String secretKey, String secret ) { } 95 96 public void setEntityContext( EntityContext ctx ) 97 { 98 mContext = ctx; 99 } 100 101 public void unsetEntityContext() 102 { 103 mContext = null; 104 } 105 106 public void ejbRemove() throws RemoveException { } 107 public void ejbActivate() { } 108 public void ejbPassivate() { } 109 public void ejbLoad() { } 110 public void ejbStore() { } 111 } 112 | Popular Tags |