KickJava   Java API By Example, From Geeks To Geeks.

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


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.NoteManager;
7 import org.enhydra.pim.business.NoteManagerI;
8 import org.enhydra.pim.business.api.NoteI;
9 import org.enhydra.pim.business.api.OwnerI;
10 import org.enhydra.pim.exception.EnhydraPimException;
11
12 import com.lutris.appserver.server.sql.ObjectId;
13
14 /**
15  *
16  * <!-- begin-user-doc --> A generated session bean <!-- end-user-doc --> *
17  <!-- lomboz.beginDefinition -->
18  <?xml version="1.0" encoding="UTF-8"?>
19  <lomboz:EJB xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:lomboz="http://lomboz.objectlearn.com/xml/lomboz">
20  <lomboz:session>
21  <lomboz:sessionEjb>
22  <j2ee:display-name>NoteManager</j2ee:display-name>
23  <j2ee:ejb-name>NoteManagerEjb</j2ee:ejb-name>
24  <j2ee:ejb-class>org.enhydra.pim.ejb.session.NoteManagerBean</j2ee:ejb-class>
25  <j2ee:session-type>Stateless</j2ee:session-type>
26  <j2ee:transaction-type>Container</j2ee:transaction-type>
27  </lomboz:sessionEjb>
28  </lomboz:session>
29  </lomboz:EJB>
30  <!-- lomboz.endDefinition -->
31  *
32  * <!-- begin-xdoclet-definition -->
33  * @ejb.bean name="NoteManager"
34  * jndi-name="NoteManagerEjb"
35  * local-jndi-name="LocalNoteManagerEjb"
36  * remote-business-interface="org.enhydra.pim.business.NoteManagerI"
37  * local-business-interface="org.enhydra.pim.business.NoteManagerI"
38  * type="Stateless"
39  * transaction-type="Container"
40  *
41  * <!-- end-xdoclet-definition -->
42  * @generated
43  */

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

78     public NoteI addNote(NoteI note, OwnerI owner) throws EnhydraPimException {
79         // TODO Auto-generated method stub
80
return noteManager.addNote( note, owner);
81     }
82     /* (non-Javadoc)
83      * @see org.enhydra.pim.business.NoteManagerI#findNote(java.math.BigDecimal)
84      */

85     public NoteI findNote(BigDecimal JavaDoc handle) throws EnhydraPimException {
86         // TODO Auto-generated method stub
87
return noteManager.findNote(handle);
88     }
89     /* (non-Javadoc)
90      * @see org.enhydra.pim.business.NoteManagerI#findNote(com.lutris.appserver.server.sql.ObjectId)
91      */

92     public NoteI findNote(ObjectId oid) throws EnhydraPimException {
93         // TODO Auto-generated method stub
94
return noteManager.findNote(oid);
95     }
96     /* (non-Javadoc)
97      * @see org.enhydra.pim.business.NoteManagerI#getOwnerNotes(org.enhydra.pim.business.api.OwnerI)
98      */

99     public Vector JavaDoc getOwnerNotes(OwnerI owner) throws EnhydraPimException {
100         // TODO Auto-generated method stub
101
return noteManager.getOwnerNotes(owner);
102     }
103     /* (non-Javadoc)
104      * @see org.enhydra.pim.business.NoteManagerI#removeNote(org.enhydra.pim.business.api.NoteI)
105      */

106     public void removeNote(NoteI note) throws EnhydraPimException {
107         noteManager.removeNote(note);
108
109     }
110     /* (non-Javadoc)
111      * @see org.enhydra.pim.business.NoteManagerI#updateNote(org.enhydra.pim.business.api.NoteI, org.enhydra.pim.business.api.OwnerI)
112      */

113     public NoteI updateNote(NoteI note, OwnerI owner) throws EnhydraPimException {
114         // TODO Auto-generated method stub
115
return noteManager.updateNote(note, owner);
116     }
117
118     
119 }
Popular Tags