com.sun.enterprise.deployment.types
Interface EntityManagerReference

All Superinterfaces:
InjectionCapable, NamedInformation
All Known Implementing Classes:
EntityManagerReferenceDescriptor

public interface EntityManagerReference
extends NamedInformation, InjectionCapable

Protocol associated with defining an EntityManager reference


Method Summary
 javax.persistence.PersistenceContextType getPersistenceContextType()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
 BundleDescriptor getReferringBundleDescriptor()
          Get the referring bundle, i.e.
 java.lang.String getUnitName()
          Get the unit name of the entity manager factory to which this reference is associated.
 void setPersistenceContextType(javax.persistence.PersistenceContextType type)
           
 void setReferringBundleDescriptor(BundleDescriptor referringBundle)
          Set the referring bundle, i.e.
 void setUnitName(java.lang.String unitName)
          Set the unit name of the entity manager factory to which this reference is associated.
 
Methods inherited from interface com.sun.enterprise.deployment.types.NamedInformation
getDescription, getName, setDescription, setName
 
Methods inherited from interface com.sun.enterprise.deployment.InjectionCapable
addInjectionTarget, getComponentEnvName, getInjectionTargets, getInjectResourceType, isInjectable, setInjectResourceType
 

Method Detail

setUnitName

void setUnitName(java.lang.String unitName)
Set the unit name of the entity manager factory to which this reference is associated.


getUnitName

java.lang.String getUnitName()
Get the unit name of the entity manager factory to which this reference is associated.


setPersistenceContextType

void setPersistenceContextType(javax.persistence.PersistenceContextType type)

getPersistenceContextType

javax.persistence.PersistenceContextType getPersistenceContextType()

getProperties

java.util.Map<java.lang.String,java.lang.String> getProperties()

setReferringBundleDescriptor

void setReferringBundleDescriptor(BundleDescriptor referringBundle)
Set the referring bundle, i.e. the bundle within which this reference is declared.


getReferringBundleDescriptor

BundleDescriptor getReferringBundleDescriptor()
Get the referring bundle, i.e. the bundle within which this reference is declared.



Copyright © 2012 GlassFish Community. All Rights Reserved.