1 4 package org.jboss.test.entity.beans; 5 6 9 public abstract class TestEntityCMP 10 extends org.jboss.test.entity.beans.TestEntityBean 11 implements javax.ejb.EntityBean 12 { 13 14 public void ejbLoad() 15 { 16 } 17 18 public void ejbStore() 19 { 20 } 21 22 public void ejbActivate() 23 { 24 } 25 26 public void ejbPassivate() 27 { 28 29 TestEntityValue = null; 30 } 31 32 public void setEntityContext(javax.ejb.EntityContext ctx) 33 { 34 } 35 36 public void unsetEntityContext() 37 { 38 } 39 40 public void ejbRemove() throws javax.ejb.RemoveException 41 { 42 43 } 44 45 46 47 private org.jboss.test.entity.interfaces.TestEntityValue TestEntityValue = null; 48 49 public org.jboss.test.entity.interfaces.TestEntityValue getTestEntityValue() 50 { 51 TestEntityValue = new org.jboss.test.entity.interfaces.TestEntityValue(); 52 try 53 { 54 TestEntityValue.setEntityID( getEntityID() ); 55 TestEntityValue.setValue1( getValue1() ); 56 57 } 58 catch (Exception e) 59 { 60 throw new javax.ejb.EJBException (e); 61 } 62 63 return TestEntityValue; 64 } 65 66 67 68 public abstract java.lang.String getEntityID() ; 69 70 public abstract void setEntityID( java.lang.String entityID ) ; 71 72 public abstract java.lang.String getValue1() ; 73 74 public abstract void setValue1( java.lang.String value1 ) ; 75 76 } 77 | Popular Tags |