com.sun.enterprise.deployment
Class EntityManagerReferenceDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.EnvironmentProperty
                  extended by com.sun.enterprise.deployment.EntityManagerReferenceDescriptor
All Implemented Interfaces:
InjectionCapable, ApplicationParameter, EntityManagerReference, NamedInformation, ContextParameter, EnvironmentEntry, InitializationParameter, NameValuePair, WebDescriptor, java.io.Serializable

public class EntityManagerReferenceDescriptor
extends EnvironmentProperty
implements EntityManagerReference

An object representing an component environment reference to an EntityManager

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.EnvironmentProperty
lookupName, mappedName
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
EntityManagerReferenceDescriptor()
           
EntityManagerReferenceDescriptor(java.lang.String name, java.lang.String unitName, javax.persistence.PersistenceContextType type)
           
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String value)
           
 java.lang.String getInjectResourceType()
          This is the class name of the type of resource that is to be injected.
 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 setInjectResourceType(java.lang.String resourceType)
           
 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 class com.sun.enterprise.deployment.EnvironmentProperty
addInjectionTarget, equals, getComponentEnvName, getInjectionTargets, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hashCode, hasInjectionTargetFromXml, hasLookupName, isConflictResourceGroup, isInjectable, isSetValueCalled, print, printInjectableResourceInfo, setLookupName, setMappedName, setType, setValue
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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, isInjectable
 
Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
 
Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair
getDescription, getName, setDescription, setName
 

Constructor Detail

EntityManagerReferenceDescriptor

public EntityManagerReferenceDescriptor(java.lang.String name,
                                        java.lang.String unitName,
                                        javax.persistence.PersistenceContextType type)

EntityManagerReferenceDescriptor

public EntityManagerReferenceDescriptor()
Method Detail

setUnitName

public void setUnitName(java.lang.String unitName)
Description copied from interface: EntityManagerReference
Set the unit name of the entity manager factory to which this reference is associated.

Specified by:
setUnitName in interface EntityManagerReference

getUnitName

public java.lang.String getUnitName()
Description copied from interface: EntityManagerReference
Get the unit name of the entity manager factory to which this reference is associated.

Specified by:
getUnitName in interface EntityManagerReference

getInjectResourceType

public java.lang.String getInjectResourceType()
Description copied from interface: InjectionCapable
This is the class name of the type of resource that is to be injected.

Specified by:
getInjectResourceType in interface InjectionCapable
Overrides:
getInjectResourceType in class EnvironmentProperty

setInjectResourceType

public void setInjectResourceType(java.lang.String resourceType)
Specified by:
setInjectResourceType in interface InjectionCapable
Overrides:
setInjectResourceType in class EnvironmentProperty

setPersistenceContextType

public void setPersistenceContextType(javax.persistence.PersistenceContextType type)
Specified by:
setPersistenceContextType in interface EntityManagerReference

getPersistenceContextType

public javax.persistence.PersistenceContextType getPersistenceContextType()
Specified by:
getPersistenceContextType in interface EntityManagerReference

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Specified by:
getProperties in interface EntityManagerReference

setReferringBundleDescriptor

public void setReferringBundleDescriptor(BundleDescriptor referringBundle)
Description copied from interface: EntityManagerReference
Set the referring bundle, i.e. the bundle within which this reference is declared.

Specified by:
setReferringBundleDescriptor in interface EntityManagerReference

getReferringBundleDescriptor

public BundleDescriptor getReferringBundleDescriptor()
Description copied from interface: EntityManagerReference
Get the referring bundle, i.e. the bundle within which this reference is declared.

Specified by:
getReferringBundleDescriptor in interface EntityManagerReference


Copyright © 2012 GlassFish Community. All Rights Reserved.