1 package org.hibernate.ejb.packaging; 2 3 import java.util.ArrayList ; 4 import java.util.HashSet ; 5 import java.util.List ; 6 import java.util.Properties ; 7 import java.util.Set ; 8 import java.io.InputStream ; 9 10 16 public class PersistenceMetadata { 17 private String name; 18 private String datasource; 19 private String jtaDatasource; 20 private String provider; 21 private List <String > classes = new ArrayList <String >(); 22 private List <String > packages = new ArrayList <String >(); 23 private List <String > mappingFiles = new ArrayList <String >(); 24 private Set <String > jarFiles = new HashSet <String >(); 25 private List <InputStream > hbmfiles = new ArrayList <InputStream >(); 26 private Properties props = new Properties (); 27 28 public String getName() { 29 return name; 30 } 31 32 public void setName(String name) { 33 this.name = name; 34 } 35 36 public String getDatasource() { 37 return datasource; 38 } 39 40 public void setDatasource(String datasource) { 41 this.datasource = datasource; 42 } 43 44 public String getJtaDatasource() { 45 return jtaDatasource; 46 } 47 48 public void setJtaDatasource(String jtaDatasource) { 49 this.jtaDatasource = jtaDatasource; 50 } 51 52 public String getProvider() { 53 return provider; 54 } 55 56 public void setProvider(String provider) { 57 this.provider = provider; 58 } 59 60 public List <String > getClasses() { 61 return classes; 62 } 63 64 public void setClasses(List <String > classes) { 65 this.classes = classes; 66 } 67 68 public List <String > getPackages() { 69 return packages; 70 } 71 72 public void setPackages(List <String > packages) { 73 this.packages = packages; 74 } 75 76 public List <String > getMappingFiles() { 77 return mappingFiles; 78 } 79 80 public void setMappingFiles(List <String > mappingFiles) { 81 this.mappingFiles = mappingFiles; 82 } 83 84 public Set <String > getJarFiles() { 85 return jarFiles; 86 } 87 88 public void setJarFiles(Set <String > jarFiles) { 89 this.jarFiles = jarFiles; 90 } 91 92 public Properties getProps() { 93 return props; 94 } 95 96 public void setProps(Properties props) { 97 this.props = props; 98 } 99 100 public List <InputStream > getHbmfiles() { 101 return hbmfiles; 102 } 103 104 public void setHbmfiles(List <InputStream > hbmfiles) { 105 this.hbmfiles = hbmfiles; 106 } 107 } 108 | Popular Tags |