FileDocCategorySizeDatePackage
EntityManagerReferenceDescriptor.javaAPI DocGlassfish v2 API3946Fri May 04 22:31:22 BST 2007com.sun.enterprise.deployment

EntityManagerReferenceDescriptor

public class EntityManagerReferenceDescriptor extends EnvironmentProperty implements com.sun.enterprise.deployment.types.EntityManagerReference
An object representing an component environment reference to an EntityManager

Fields Summary
private String
unitName
private javax.persistence.PersistenceContextType
contextType
private BundleDescriptor
referringBundle
private Map
properties
Constructors Summary
public EntityManagerReferenceDescriptor(String name, String unitName, javax.persistence.PersistenceContextType type)


       
                                             
                                              
        super(name, "", "");

        this.unitName = unitName;
        this.contextType = type;
    
public EntityManagerReferenceDescriptor()

Methods Summary
public voidaddProperty(java.lang.String name, java.lang.String value)

        properties.put(name, value);
    
public java.lang.StringgetInjectResourceType()

        return "javax.persistence.EntityManager";
    
public javax.persistence.PersistenceContextTypegetPersistenceContextType()


        return contextType;

    
public java.util.MapgetProperties()

        return new HashMap<String,String>(properties);
    
public BundleDescriptorgetReferringBundleDescriptor()

	return referringBundle;
    
public java.lang.StringgetUnitName()


        return unitName;

    
public voidsetInjectResourceType(java.lang.String resourceType)

    
public voidsetPersistenceContextType(javax.persistence.PersistenceContextType type)


        contextType = type;

    
public voidsetReferringBundleDescriptor(BundleDescriptor referringBundle)

	this.referringBundle = referringBundle;
    
public voidsetUnitName(java.lang.String unitName)

        
        this.unitName = unitName;