KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ejb > FileCMP


1 /*
2  * Generated by XDoclet - Do not edit!
3  */

4 package test.ejb;
5
6 /**
7  * CMP layer for File.
8  * @xdoclet-generated at 16-04-05
9  * @copyright The XDoclet Team
10  * @author XDoclet
11  * @version 1.2.3
12  */

13 public abstract class FileCMP
14    extends test.ejb.FileBean
15    implements javax.ejb.EntityBean JavaDoc
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 JavaDoc e)
32       {
33          throw new javax.ejb.EJBException JavaDoc(e);
34       }
35
36       return dataHolder;
37    }
38
39    /**
40     * Generated ejbPostCreate for corresponding ejbCreate method.
41     *
42     * @see #ejbCreate(java.lang.String id,java.lang.String contentType,byte[] content)
43     */

44    public void ejbPostCreate(java.lang.String JavaDoc id,java.lang.String JavaDoc 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 JavaDoc 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 JavaDoc
80    {
81       super.ejbRemove();
82
83    }
84
85  /* Value Objects BEGIN */
86
87 /* Value Objects END */
88
89    public abstract java.lang.String JavaDoc getId() ;
90
91    public abstract void setId( java.lang.String JavaDoc id ) ;
92
93    public abstract byte[] getContent() ;
94
95    public abstract void setContent( byte[] content ) ;
96
97    public abstract java.lang.String JavaDoc getContentType() ;
98
99    public abstract void setContentType( java.lang.String JavaDoc contentType ) ;
100
101    public abstract java.util.Date JavaDoc getCreationDate() ;
102
103    public abstract void setCreationDate( java.util.Date JavaDoc creationDate ) ;
104
105 }
106
Popular Tags