1 45 package org.openejb.webadmin.main; 46 47 import javax.ejb.SessionBean ; 48 import javax.ejb.SessionContext ; 49 50 import org.exolab.castor.jdo.conf.Database; 51 import org.exolab.castor.mapping.xml.MappingRoot; 52 53 56 public class CMPMappingDataBean implements SessionBean { 57 private Database globalDatabase; 58 private Database localDatabase; 59 private String globalDatabaseFileName; 60 private String localDatabaseFileName; 61 private MappingRoot mappingRoot; 62 private String mappingRootFileName; 63 64 public void ejbCreate() {} 65 66 public void ejbActivate() {} 67 68 public void ejbPassivate() {} 69 70 public void ejbRemove() {} 71 72 public void setSessionContext(SessionContext arg0) {} 73 74 public Database getGlobalDatabase() { 75 return globalDatabase; 76 } 77 78 public String getGlobalDatabaseFileName() { 79 return globalDatabaseFileName; 80 } 81 82 public Database getLocalDatabase() { 83 return localDatabase; 84 } 85 86 public String getLocalDatabaseFileName() { 87 return localDatabaseFileName; 88 } 89 90 public MappingRoot getMappingRoot() { 91 return mappingRoot; 92 } 93 94 public String getMappingRootFileName() { 95 return mappingRootFileName; 96 } 97 98 public void setGlobalDatabase(Database database) { 99 globalDatabase = database; 100 } 101 102 public void setGlobalDatabaseFileName(String string) { 103 globalDatabaseFileName = string; 104 } 105 106 public void setLocalDatabase(Database database) { 107 localDatabase = database; 108 } 109 110 public void setLocalDatabaseFileName(String string) { 111 localDatabaseFileName = string; 112 } 113 114 public void setMappingRoot(MappingRoot root) { 115 mappingRoot = root; 116 } 117 118 public void setMappingRootFileName(String string) { 119 mappingRootFileName = string; 120 } 121 122 } 123 | Popular Tags |