1 22 package org.jboss.ejb3.entity; 23 24 import java.net.URL ; 25 import java.util.List ; 26 import java.util.Properties ; 27 import javax.persistence.spi.PersistenceUnitInfo; 28 import javax.persistence.spi.PersistenceUnitTransactionType; 29 import javax.persistence.spi.ClassTransformer; 30 import javax.sql.DataSource ; 31 32 38 public class PersistenceUnitInfoImpl implements PersistenceUnitInfo 39 { 40 private String entityManagerName; 41 private DataSource jtaDataSource; 42 private DataSource nonJtaDataSource; 43 private List <String > mappingFileNames; 44 private List <URL > jarFiles; 45 private List <String > entityclassNames; 46 private Properties properties; 47 private ClassLoader classLoader; 48 private String persistenceProviderClassName; 49 private PersistenceUnitTransactionType transactionType; 50 private URL persistenceUnitRootUrl; 51 private boolean excludeClasses; 52 53 public PersistenceUnitInfoImpl() 54 { 55 } 56 57 public void addTransformer(ClassTransformer transformer) 58 { 59 } 61 62 public ClassLoader getNewTempClassLoader() 63 { 64 return null; 65 } 66 67 public String getPersistenceProviderClassName() 68 { 69 return persistenceProviderClassName; 70 } 71 72 public void setPersistenceProviderClassName(String persistenceProviderClassName) 73 { 74 this.persistenceProviderClassName = persistenceProviderClassName; 75 } 76 77 public String getPersistenceUnitName() 78 { 79 return entityManagerName; 80 } 81 82 public void setPersistenceUnitName(String entityManagerName) 83 { 84 this.entityManagerName = entityManagerName; 85 } 86 87 public DataSource getJtaDataSource() 88 { 89 return jtaDataSource; 90 } 91 92 public void setJtaDataSource(DataSource jtaDataSource) 93 { 94 this.jtaDataSource = jtaDataSource; 95 } 96 97 public DataSource getNonJtaDataSource() 98 { 99 return nonJtaDataSource; 100 } 101 102 public void setNonJtaDataSource(DataSource nonJtaDataSource) 103 { 104 this.nonJtaDataSource = nonJtaDataSource; 105 } 106 107 public List <String > getMappingFileNames() 108 { 109 return mappingFileNames; 110 } 111 112 public void setMappingFileNames(List <String > mappingFileNames) 113 { 114 this.mappingFileNames = mappingFileNames; 115 } 116 117 public List <URL > getJarFileUrls() 118 { 119 return jarFiles; 120 } 121 122 public void setJarFiles(List <URL > jarFiles) 123 { 124 this.jarFiles = jarFiles; 125 } 126 127 public List <String > getManagedClassNames() 128 { 129 return entityclassNames; 130 } 131 132 public void setManagedClassnames(List <String > entityclassNames) 133 { 134 this.entityclassNames = entityclassNames; 135 } 136 137 public Properties getProperties() 138 { 139 return properties; 140 } 141 142 public void setProperties(Properties properties) 143 { 144 this.properties = properties; 145 } 146 147 public ClassLoader getClassLoader() 148 { 149 return classLoader; 150 } 151 152 public void setClassLoader(ClassLoader classLoader) 153 { 154 this.classLoader = classLoader; 155 } 156 157 public PersistenceUnitTransactionType getTransactionType() 158 { 159 return transactionType; 160 } 161 162 public void setTransactionType(PersistenceUnitTransactionType transactionType) 163 { 164 this.transactionType = transactionType; 165 } 166 167 public URL getPersistenceUnitRootUrl() 168 { 169 return persistenceUnitRootUrl; 170 } 171 172 public void setPersistenceUnitRootUrl(URL persistenceUnitRootUrl) 173 { 174 this.persistenceUnitRootUrl = persistenceUnitRootUrl; 175 } 176 177 public boolean excludeUnlistedClasses() 178 { 179 return excludeClasses; 180 } 181 182 public void setExcludeUnlistedClasses(boolean excludeClasses) 183 { 184 this.excludeClasses = excludeClasses; 185 } 186 187 } 188 | Popular Tags |