KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

77     public ContactTypeI addContactType(ContactTypeI cType) throws EnhydraPimException {
78         // TODO Auto-generated method stub
79
return contactTypeManager.addContactType(cType);
80     }
81     /* (non-Javadoc)
82      * @see org.enhydra.pim.business.ContactTypeManagerI#findContactType(java.math.BigDecimal)
83      */

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

91     public ContactTypeI findContactType(ObjectId oid) throws EnhydraPimException {
92         // TODO Auto-generated method stub
93
return contactTypeManager.findContactType(oid);
94     }
95     /* (non-Javadoc)
96      * @see org.enhydra.pim.business.ContactTypeManagerI#findContactType(java.lang.String)
97      */

98     public ContactTypeI findContactType(String JavaDoc typeStr) throws EnhydraPimException {
99         // TODO Auto-generated method stub
100
return contactTypeManager.findContactType(typeStr);
101     }
102     /* (non-Javadoc)
103      * @see org.enhydra.pim.business.ContactTypeManagerI#getContactTypes()
104      */

105     public Vector JavaDoc getContactTypes() throws EnhydraPimException {
106         // TODO Auto-generated method stub
107
return contactTypeManager.getContactTypes() ;
108     }
109     /* (non-Javadoc)
110      * @see org.enhydra.pim.business.ContactTypeManagerI#newContactType(java.math.BigDecimal, java.lang.String)
111      */

112     public ContactTypeI newContactType(BigDecimal JavaDoc handle, String JavaDoc contact_type) {
113         // TODO Auto-generated method stub
114
return contactTypeManager.newContactType( handle, contact_type) ;
115     }
116     /* (non-Javadoc)
117      * @see org.enhydra.pim.business.ContactTypeManagerI#newContactType(java.lang.String)
118      */

119     public ContactTypeI newContactType(String JavaDoc contact_type) {
120         // TODO Auto-generated method stub
121
return contactTypeManager.newContactType(contact_type) ;
122     }
123     /* (non-Javadoc)
124      * @see org.enhydra.pim.business.ContactTypeManagerI#removeContactType(org.enhydra.pim.business.api.ContactTypeI)
125      */

126     public void removeContactType(ContactTypeI contactType) throws EnhydraPimException {
127         contactTypeManager.removeContactType(contactType) ;
128
129     }
130     /* (non-Javadoc)
131      * @see org.enhydra.pim.business.ContactTypeManagerI#updateContactType(org.enhydra.pim.business.api.ContactTypeI)
132      */

133     public ContactTypeI updateContactType(ContactTypeI cType) throws EnhydraPimException {
134         // TODO Auto-generated method stub
135
return contactTypeManager.updateContactType(cType) ;
136     }
137
138 }
Popular Tags