1 package org.enhydra.pim.ejb.session; 2 3 import org.enhydra.pim.business.DataManager; 4 import org.enhydra.pim.business.DataManagerI; 5 import org.enhydra.pim.exception.EnhydraPimException; 6 7 37 public abstract class DataManagerBean implements DataManagerI, javax.ejb.SessionBean { 38 39 40 private javax.ejb.SessionContext _ctx = null; 41 private DataManagerI dataManager = null; 42 43 public void setSessionContext(javax.ejb.SessionContext ctx){ 44 _ctx = ctx; 45 } 46 47 public void unsetSessionContext(){ 48 _ctx = null; 49 } 50 51 public void ejbActivate(){ 52 } 54 55 public void ejbPassivate(){ 56 } 58 59 60 public void ejbRemove(){ 61 dataManager=null; 62 } 63 64 public void ejbCreate() throws javax.ejb.CreateException { 65 dataManager = new DataManager(); 66 } 67 68 69 public void adminBackup() throws EnhydraPimException { 70 dataManager.adminBackup(); 71 72 } 73 74 75 public void adminRestore() throws EnhydraPimException { 76 dataManager.adminRestore(); 77 78 } 79 80 81 public void adminClean() throws EnhydraPimException { 82 dataManager.adminClean(); 83 84 } 85 86 87 public void adminCleanBackup() throws EnhydraPimException { 88 dataManager.adminCleanBackup() ; 89 90 } 91 92 } | Popular Tags |