1 23 24 package com.sun.enterprise.deployment.runtime; 25 26 import java.util.*; 27 import java.lang.reflect.*; 28 import java.util.logging.*; 29 import javax.ejb.EJBException ; 30 import com.sun.enterprise.util.LocalStringManagerImpl; 31 import com.sun.enterprise.util.TypeUtil; 32 import com.sun.enterprise.deployment.*; 33 import com.sun.enterprise.deployment.util.DOLUtils; 34 35 36 43 44 public class IASPersistenceManagerDescriptor extends Descriptor { 45 46 public static final String PM_IDENTIFIER_DEFAULT = "SunOne"; public static final String PM_VERSION_DEFAULT = "1.0"; public static final String PM_CONFIG_DEFAULT = "myconfig.config"; 49 public static final String PM_CLASS_GENERATOR_DEFAULT = "com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator"; public static final String PM_CLASS_GENERATOR_DEFAULT_OLD = "com.iplanet.ias.persistence.internal.ejb.ejbc.JDOCodeGenerator"; public static final String PM_MAPPING_FACTORY_DEFAULT = "com.sun.ffj.MyFactory"; private String pm_identifier = null; 53 private String pm_version = null; 54 private String pm_config = null; 55 private String pm_class_generator = null; 56 private String pm_mapping_factory = null; 57 58 private static LocalStringManagerImpl localStrings = 59 new LocalStringManagerImpl(IASPersistenceManagerDescriptor.class); 60 61 private static final Logger _logger = DOLUtils.getDefaultLogger(); 62 63 private Descriptor parentDesc; 65 66 public IASPersistenceManagerDescriptor() { 67 pm_identifier = PM_IDENTIFIER_DEFAULT; 68 pm_version = PM_VERSION_DEFAULT; 69 pm_config = PM_CONFIG_DEFAULT; 70 pm_class_generator = PM_CLASS_GENERATOR_DEFAULT; 71 pm_mapping_factory = PM_MAPPING_FACTORY_DEFAULT; 72 _logger.finer("***IASPersistenceManagerDescriptor.constructed done -#-"); 73 } 74 75 78 public IASPersistenceManagerDescriptor(String id, String ver, String conf, String generator, String factory) { 79 80 pm_identifier = id; 81 pm_version = ver; 82 pm_config = conf; 83 pm_class_generator = generator; 84 pm_mapping_factory = factory; 85 86 _logger.finer("***IASPersistenceManagerDescriptor.constructed done -#-"); 87 } 88 89 public String getPersistenceManagerIdentifier() { 90 return pm_identifier; 91 } 92 93 public void setPersistenceManagerIdentifier(String pm_identifier) { 94 if (pm_identifier == null) { 95 this.pm_identifier = PM_IDENTIFIER_DEFAULT; 96 } else { 97 this.pm_identifier = pm_identifier; 98 } 99 } 100 101 public String getPersistenceManagerVersion() { 102 return pm_version; 103 } 104 105 public void setPersistenceManagerVersion(String pm_version) { 106 if (pm_version == null) { 107 this.pm_version = PM_VERSION_DEFAULT; 108 } else { 109 this.pm_version = pm_version; 110 } 111 } 112 113 public String getPersistenceManagerConfig () { 114 return pm_config; 115 } 116 117 public void setPersistenceManagerConfig(String pm_config) { 118 if (pm_config == null) { 119 this.pm_config = PM_CONFIG_DEFAULT; 120 } else { 121 this.pm_config = pm_config; 122 } 123 } 124 125 public String getPersistenceManagerClassGenerator() { 126 return pm_class_generator; 127 } 128 129 public void setPersistenceManagerClassGenerator(String pm_class_generator) { 130 if (pm_class_generator == null) { 131 this.pm_class_generator = PM_CLASS_GENERATOR_DEFAULT; 132 } else { 133 this.pm_class_generator = pm_class_generator; 134 } 135 } 136 137 public String getPersistenceManagerMappingFactory() { 138 return pm_mapping_factory; 139 } 140 141 public void setPersistenceManagerMappingFactory(String pm_mapping_factory) { 142 if (pm_mapping_factory == null) { 143 this.pm_mapping_factory = PM_MAPPING_FACTORY_DEFAULT; 144 } else { 145 this.pm_mapping_factory = pm_mapping_factory; 146 } 147 } 148 149 153 public boolean classesChanged() { 154 return false; 155 } 156 157 } | Popular Tags |