1 4 package test.ejb; 5 6 13 public abstract class FileCMP 14 extends test.ejb.FileBean 15 implements javax.ejb.EntityBean 16 { 17 18 public test.interfaces.FileData getData() 19 { 20 test.interfaces.FileData dataHolder = null; 21 try 22 { 23 dataHolder = new test.interfaces.FileData(); 24 25 dataHolder.setId( getId() ); 26 dataHolder.setContent( getContent() ); 27 dataHolder.setContentType( getContentType() ); 28 dataHolder.setCreationDate( getCreationDate() ); 29 30 } 31 catch (RuntimeException e) 32 { 33 throw new javax.ejb.EJBException (e); 34 } 35 36 return dataHolder; 37 } 38 39 44 public void ejbPostCreate(java.lang.String id,java.lang.String contentType,byte[] content) 45 { 46 } 47 48 public void ejbLoad() 49 { 50 super.ejbLoad(); 51 } 52 53 public void ejbStore() 54 { 55 super.ejbStore(); 56 } 57 58 public void ejbActivate() 59 { 60 super.ejbActivate(); 61 } 62 63 public void ejbPassivate() 64 { 65 super.ejbPassivate(); 66 67 } 68 69 public void setEntityContext(javax.ejb.EntityContext ctx) 70 { 71 super.setEntityContext(ctx); 72 } 73 74 public void unsetEntityContext() 75 { 76 super.unsetEntityContext(); 77 } 78 79 public void ejbRemove() throws javax.ejb.RemoveException 80 { 81 super.ejbRemove(); 82 83 } 84 85 86 87 88 89 public abstract java.lang.String getId() ; 90 91 public abstract void setId( java.lang.String id ) ; 92 93 public abstract byte[] getContent() ; 94 95 public abstract void setContent( byte[] content ) ; 96 97 public abstract java.lang.String getContentType() ; 98 99 public abstract void setContentType( java.lang.String contentType ) ; 100 101 public abstract java.util.Date getCreationDate() ; 102 103 public abstract void setCreationDate( java.util.Date creationDate ) ; 104 105 } 106 | Popular Tags |