KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.pim.ejb.session;
2
3 import java.math.BigDecimal JavaDoc;
4 import java.util.Vector JavaDoc;
5
6 import org.enhydra.pim.business.TaskManager;
7 import org.enhydra.pim.business.TaskManagerI;
8 import org.enhydra.pim.business.api.OwnerI;
9 import org.enhydra.pim.business.api.TaskI;
10 import org.enhydra.pim.exception.EnhydraPimException;
11
12 import com.lutris.appserver.server.sql.ObjectId;
13
14
15 /**
16  *
17  * <!-- begin-user-doc --> A generated session bean <!-- end-user-doc --> *
18  <!-- lomboz.beginDefinition -->
19  <?xml version="1.0" encoding="UTF-8"?>
20  <lomboz:EJB xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:lomboz="http://lomboz.objectlearn.com/xml/lomboz">
21  <lomboz:session>
22  <lomboz:sessionEjb>
23  <j2ee:display-name>TaskManager</j2ee:display-name>
24  <j2ee:ejb-name>TaskManagerEjb</j2ee:ejb-name>
25  <j2ee:ejb-class>org.enhydra.pim.ejb.session.TaskManagerBean</j2ee:ejb-class>
26  <j2ee:session-type>Stateless</j2ee:session-type>
27  <j2ee:transaction-type>Container</j2ee:transaction-type>
28  </lomboz:sessionEjb>
29  </lomboz:session>
30  </lomboz:EJB>
31  <!-- lomboz.endDefinition -->
32  *
33  * <!-- begin-xdoclet-definition -->
34  * @ejb.bean name="TaskManager"
35  * jndi-name="TaskManagerEjb"
36  * local-jndi-name="LocalTaskManagerEjb"
37  * remote-business-interface="org.enhydra.pim.business.TaskManagerI"
38  * local-business-interface="org.enhydra.pim.business.TaskManagerI"
39  * type="Stateless"
40  * transaction-type="Container"
41  *
42  * <!-- end-xdoclet-definition -->
43  * @generated
44  */

45 public abstract class TaskManagerBean implements TaskManagerI, javax.ejb.SessionBean JavaDoc{
46
47     private javax.ejb.SessionContext JavaDoc _ctx = null;
48     private TaskManager taskManager = null;
49
50     public void setSessionContext(javax.ejb.SessionContext JavaDoc ctx){
51         _ctx = ctx;
52     }
53
54     public void unsetSessionContext(){
55         _ctx = null;
56     }
57     
58     public void ejbActivate(){
59         // TODO Auto-generated method stub
60
}
61
62     public void ejbPassivate(){
63         // TODO Auto-generated method stub
64
}
65
66     
67     public void ejbRemove(){
68         taskManager = null;
69     }
70
71     public void ejbCreate() throws javax.ejb.CreateException JavaDoc{
72         taskManager = new TaskManager();
73     }
74     
75
76     
77     /* (non-Javadoc)
78      * @see org.enhydra.pim.business.TaskManagerI#addTask(org.enhydra.pim.business.api.TaskI, org.enhydra.pim.business.api.OwnerI)
79      */

80     public TaskI addTask(TaskI task, OwnerI owner) throws EnhydraPimException {
81         // TODO Auto-generated method stub
82
return taskManager.addTask(task, owner);
83     }
84     /* (non-Javadoc)
85      * @see org.enhydra.pim.business.TaskManagerI#findTask(java.math.BigDecimal)
86      */

87     public TaskI findTask(BigDecimal JavaDoc handle) throws EnhydraPimException {
88         // TODO Auto-generated method stub
89
return taskManager.findTask(handle);
90     }
91     /* (non-Javadoc)
92      * @see org.enhydra.pim.business.TaskManagerI#findTask(com.lutris.appserver.server.sql.ObjectId)
93      */

94     public TaskI findTask(ObjectId oid) throws EnhydraPimException {
95         // TODO Auto-generated method stub
96
return taskManager.findTask(oid);
97     }
98     /* (non-Javadoc)
99      * @see org.enhydra.pim.business.TaskManagerI#getOwnerTasks(org.enhydra.pim.business.api.OwnerI)
100      */

101     public Vector JavaDoc getOwnerTasks(OwnerI owner) throws EnhydraPimException {
102         // TODO Auto-generated method stub
103
return taskManager.getOwnerTasks(owner);
104     }
105     /* (non-Javadoc)
106      * @see org.enhydra.pim.business.TaskManagerI#removeTask(org.enhydra.pim.business.api.TaskI)
107      */

108     public void removeTask(TaskI task) throws EnhydraPimException {
109         taskManager.removeTask(task);
110
111     }
112     /* (non-Javadoc)
113      * @see org.enhydra.pim.business.TaskManagerI#updateTask(org.enhydra.pim.business.api.TaskI, org.enhydra.pim.business.api.OwnerI)
114      */

115     public TaskI updateTask(TaskI task, OwnerI owner) throws EnhydraPimException {
116         // TODO Auto-generated method stub
117
return taskManager.updateTask(task, owner);
118     }
119
120 }
Popular Tags