KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > ejb > session > DataManagerBean


1 package org.enhydra.pim.ejb.session;
2
3 import org.enhydra.pim.business.DataManager;
4 import org.enhydra.pim.business.DataManagerI;
5 import org.enhydra.pim.exception.EnhydraPimException;
6
7 /**
8  *
9  * <!-- begin-user-doc --> A generated session bean <!-- end-user-doc --> *
10  <!-- lomboz.beginDefinition -->
11  <?xml version="1.0" encoding="UTF-8"?>
12  <lomboz:EJB xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:lomboz="http://lomboz.objectlearn.com/xml/lomboz">
13  <lomboz:session>
14  <lomboz:sessionEjb>
15  <j2ee:display-name>DataManager</j2ee:display-name>
16  <j2ee:ejb-name>DataManagerEjb</j2ee:ejb-name>
17  <j2ee:ejb-class>org.enhydra.pim.ejb.session.DataManagerBean</j2ee:ejb-class>
18  <j2ee:session-type>Stateless</j2ee:session-type>
19  <j2ee:transaction-type>Container</j2ee:transaction-type>
20  </lomboz:sessionEjb>
21  </lomboz:session>
22  </lomboz:EJB>
23  <!-- lomboz.endDefinition -->
24  *
25  * <!-- begin-xdoclet-definition -->
26  * @ejb.bean name="DataManager"
27  * jndi-name="DataManagerEjb"
28  * local-jndi-name="LocalDataManagerEjb"
29  * remote-business-interface="org.enhydra.pim.business.DataManagerI"
30  * local-business-interface="org.enhydra.pim.business.DataManagerI"
31  * type="Stateless"
32  * transaction-type="Container"
33  *
34  * <!-- end-xdoclet-definition -->
35  * @generated
36  */

37 public abstract class DataManagerBean implements DataManagerI, javax.ejb.SessionBean JavaDoc {
38
39     
40     private javax.ejb.SessionContext JavaDoc _ctx = null;
41     private DataManagerI dataManager = null;
42
43     public void setSessionContext(javax.ejb.SessionContext JavaDoc ctx){
44         _ctx = ctx;
45     }
46
47     public void unsetSessionContext(){
48         _ctx = null;
49     }
50     
51     public void ejbActivate(){
52         // TODO Auto-generated method stub
53
}
54
55     public void ejbPassivate(){
56         // TODO Auto-generated method stub
57
}
58
59     
60     public void ejbRemove(){
61         dataManager=null;
62     }
63
64     public void ejbCreate() throws javax.ejb.CreateException JavaDoc{
65        dataManager = new DataManager();
66     }
67     
68
69     public void adminBackup() throws EnhydraPimException {
70         dataManager.adminBackup();
71         
72     }
73
74
75     public void adminRestore() throws EnhydraPimException {
76         dataManager.adminRestore();
77         
78     }
79
80
81     public void adminClean() throws EnhydraPimException {
82         dataManager.adminClean();
83         
84     }
85
86
87     public void adminCleanBackup() throws EnhydraPimException {
88         dataManager.adminCleanBackup() ;
89         
90     }
91
92 }
Popular Tags