1 23 package com.sun.enterprise.deployment; 24 25 import com.sun.enterprise.deployment.types.EntityManagerFactoryReference; 26 27 32 public class EntityManagerFactoryReferenceDescriptor extends 33 EnvironmentProperty implements EntityManagerFactoryReference { 34 35 private String unitName = null; 36 private BundleDescriptor referringBundle; 37 38 public EntityManagerFactoryReferenceDescriptor(String name, 39 String unitName) { 40 super(name, "", ""); 41 42 this.unitName = unitName; 43 } 44 45 public EntityManagerFactoryReferenceDescriptor() {} 46 47 public void setUnitName(String unitName) { 48 49 this.unitName = unitName; 50 } 51 52 public String getUnitName() { 53 54 return unitName; 55 56 } 57 58 public String getInjectResourceType() { 59 return "javax.persistence.EntityManagerFactory"; 60 } 61 62 public void setInjectResourceType(String resourceType) { 63 } 64 65 public void setReferringBundleDescriptor(BundleDescriptor referringBundle) 66 { 67 this.referringBundle = referringBundle; 68 } 69 70 public BundleDescriptor getReferringBundleDescriptor() 71 { 72 return referringBundle; 73 } 74 75 } 76 77 | Popular Tags |