1 package org.enhydra.pim.ejb.session; 2 3 import java.math.BigDecimal ; 4 import java.util.Vector ; 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 43 public abstract class ContactTypeManagerBean implements ContactTypeManagerI, javax.ejb.SessionBean { 44 45 private javax.ejb.SessionContext _ctx = null; 46 private ContactTypeManagerI contactTypeManager = null; 47 48 public void setSessionContext(javax.ejb.SessionContext ctx){ 49 _ctx = ctx; 50 } 51 52 public void unsetSessionContext(){ 53 _ctx = null; 54 } 55 56 public void ejbActivate(){ 57 } 59 60 public void ejbPassivate(){ 61 } 63 64 65 public void ejbRemove(){ 66 contactTypeManager = null; 67 } 68 69 public void ejbCreate() throws javax.ejb.CreateException { 70 contactTypeManager = new ContactTypeManager(); 71 } 72 73 74 77 public ContactTypeI addContactType(ContactTypeI cType) throws EnhydraPimException { 78 return contactTypeManager.addContactType(cType); 80 } 81 84 public ContactTypeI findContactType(BigDecimal handle) throws EnhydraPimException { 85 return contactTypeManager.findContactType(handle); 87 } 88 91 public ContactTypeI findContactType(ObjectId oid) throws EnhydraPimException { 92 return contactTypeManager.findContactType(oid); 94 } 95 98 public ContactTypeI findContactType(String typeStr) throws EnhydraPimException { 99 return contactTypeManager.findContactType(typeStr); 101 } 102 105 public Vector getContactTypes() throws EnhydraPimException { 106 return contactTypeManager.getContactTypes() ; 108 } 109 112 public ContactTypeI newContactType(BigDecimal handle, String contact_type) { 113 return contactTypeManager.newContactType( handle, contact_type) ; 115 } 116 119 public ContactTypeI newContactType(String contact_type) { 120 return contactTypeManager.newContactType(contact_type) ; 122 } 123 126 public void removeContactType(ContactTypeI contactType) throws EnhydraPimException { 127 contactTypeManager.removeContactType(contactType) ; 128 129 } 130 133 public ContactTypeI updateContactType(ContactTypeI cType) throws EnhydraPimException { 134 return contactTypeManager.updateContactType(cType) ; 136 } 137 138 } | Popular Tags |