KickJava   Java API By Example, From Geeks To Geeks.

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


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.PersonManager;
7 import org.enhydra.pim.business.PersonManagerI;
8 import org.enhydra.pim.business.api.OwnerI;
9 import org.enhydra.pim.business.api.PersonI;
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>PersonManager</j2ee:display-name>
23  <j2ee:ejb-name>PersonManagerEjb</j2ee:ejb-name>
24  <j2ee:ejb-class>org.enhydra.pim.ejb.session.PersonManagerBean</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="PersonManager"
34  * jndi-name="PersonManagerEjb"
35  * local-jndi-name="LocalPersonManagerEjb"
36  * remote-business-interface="org.enhydra.pim.business.PersonManagerI"
37  * local-business-interface="org.enhydra.pim.business.PersonManagerI"
38  * type="Stateless"
39  * transaction-type="Container"
40  *
41  * <!-- end-xdoclet-definition -->
42  * @generated
43  */

44 public abstract class PersonManagerBean implements PersonManagerI, javax.ejb.SessionBean JavaDoc{
45
46     private javax.ejb.SessionContext JavaDoc _ctx = null;
47     private PersonManager personManager = 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         personManager = null;
68     }
69
70     public void ejbCreate() throws javax.ejb.CreateException JavaDoc{
71         personManager = new PersonManager();
72     }
73
74     
75     /* (non-Javadoc)
76      * @see org.enhydra.pim.business.PersonManagerI#addPerson(org.enhydra.pim.business.api.PersonI, org.enhydra.pim.business.api.OwnerI)
77      */

78     public PersonI addPerson(PersonI person, OwnerI owner) throws EnhydraPimException {
79         // TODO Auto-generated method stub
80
return personManager.addPerson(person, owner);
81     }
82     /* (non-Javadoc)
83      * @see org.enhydra.pim.business.PersonManagerI#findPerson(java.math.BigDecimal)
84      */

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

92     public PersonI findPerson(ObjectId oid) throws EnhydraPimException {
93         // TODO Auto-generated method stub
94
return personManager.findPerson(oid);
95     }
96     /* (non-Javadoc)
97      * @see org.enhydra.pim.business.PersonManagerI#findPersonsByQuery(java.math.BigDecimal, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
98      */

99     public Vector JavaDoc findPersonsByQuery(BigDecimal JavaDoc ownerhandle, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname,
100                     String JavaDoc note, String JavaDoc contactType, String JavaDoc contactData) throws EnhydraPimException {
101         // TODO Auto-generated method stub
102
return personManager.findPersonsByQuery( ownerhandle, firstname, lastname, nicname,
103                      note, contactType, contactData);
104     }
105     /* (non-Javadoc)
106      * @see org.enhydra.pim.business.PersonManagerI#findPersonsByQuery(org.enhydra.pim.business.api.OwnerI, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
107      */

108     public Vector JavaDoc findPersonsByQuery(OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname, String JavaDoc note,
109                     String JavaDoc contactType, String JavaDoc contactData) throws EnhydraPimException {
110         // TODO Auto-generated method stub
111
return personManager.findPersonsByQuery( owner, firstname, lastname, nicname, note,
112                      contactType, contactData);
113     }
114     /* (non-Javadoc)
115      * @see org.enhydra.pim.business.PersonManagerI#getOwnerPersons(org.enhydra.pim.business.api.OwnerI)
116      */

117     public Vector JavaDoc getOwnerPersons(OwnerI owner) throws EnhydraPimException {
118         // TODO Auto-generated method stub
119
return personManager.getOwnerPersons( owner);
120     }
121     /* (non-Javadoc)
122      * @see org.enhydra.pim.business.PersonManagerI#newPerson(java.math.BigDecimal, org.enhydra.pim.business.api.OwnerI, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
123      */

124     public PersonI newPerson(BigDecimal JavaDoc handle, OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname,
125                     String JavaDoc note){
126         // TODO Auto-generated method stub
127
return personManager.newPerson( handle, owner, firstname, lastname, nicname, note) ;
128     }
129     /* (non-Javadoc)
130      * @see org.enhydra.pim.business.PersonManagerI#newPerson(org.enhydra.pim.business.api.OwnerI, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
131      */

132     public PersonI newPerson(OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname, String JavaDoc note){
133         // TODO Auto-generated method stub
134
return personManager.newPerson( owner, firstname, lastname, nicname, note);
135     }
136     /* (non-Javadoc)
137      * @see org.enhydra.pim.business.PersonManagerI#removePerson(org.enhydra.pim.business.api.PersonI)
138      */

139     public void removePerson(PersonI person) throws EnhydraPimException {
140         personManager.removePerson(person);
141
142     }
143     /* (non-Javadoc)
144      * @see org.enhydra.pim.business.PersonManagerI#updatePerson(org.enhydra.pim.business.api.PersonI, org.enhydra.pim.business.api.OwnerI)
145      */

146     public PersonI updatePerson(PersonI person, OwnerI owner) throws EnhydraPimException {
147         // TODO Auto-generated method stub
148
return personManager.updatePerson( person, owner);
149     }
150     
151 }
Popular Tags