Package com.sun.enterprise.deployment
Class EntityManagerReferenceDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.EnvironmentProperty
-
- com.sun.enterprise.deployment.EntityManagerReferenceDescriptor
-
- All Implemented Interfaces:
InjectionCapable,ApplicationParam,EntityManagerReference,NamedInformation,ContextParameter,EnvironmentEntry,InitializationParameter,NameValuePair,WebDescriptor,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 org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description EntityManagerReferenceDescriptor()EntityManagerReferenceDescriptor(String name, String unitName, jakarta.persistence.PersistenceContextType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String name, String value)StringgetInjectResourceType()This is the class name of the type of resource that is to be injected.jakarta.persistence.PersistenceContextTypegetPersistenceContextType()Map<String,String>getProperties()BundleDescriptorgetReferringBundleDescriptor()Get the referring bundle, i.e.jakarta.persistence.SynchronizationTypegetSynchronizationType()StringgetUnitName()Get the unit name of the entity manager factory to which this reference is associated.booleanisConflict(EntityManagerReferenceDescriptor other)voidsetInjectResourceType(String resourceType)voidsetPersistenceContextType(jakarta.persistence.PersistenceContextType type)voidsetReferringBundleDescriptor(BundleDescriptor referringBundle)Set the referring bundle, i.e.voidsetSynchronizationType(jakarta.persistence.SynchronizationType synchronizationType)voidsetUnitName(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, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, print, printInjectableResourceInfo, setLookupName, setMappedName, setType, setValue
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, 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 org.glassfish.deployment.common.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.InjectionCapable
addInjectionTarget, getComponentEnvName, getInjectionTargets, isInjectable
-
Methods inherited from interface com.sun.enterprise.deployment.types.NamedInformation
getDescription, getName, setDescription, setName
-
Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair
getDescription, getName, setDescription, setName
-
Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
-
-
-
-
Method Detail
-
setUnitName
public void setUnitName(String unitName)
Description copied from interface:EntityManagerReferenceSet the unit name of the entity manager factory to which this reference is associated.- Specified by:
setUnitNamein interfaceEntityManagerReference
-
getUnitName
public String getUnitName()
Description copied from interface:EntityManagerReferenceGet the unit name of the entity manager factory to which this reference is associated.- Specified by:
getUnitNamein interfaceEntityManagerReference
-
getInjectResourceType
public String getInjectResourceType()
Description copied from interface:InjectionCapableThis is the class name of the type of resource that is to be injected.- Specified by:
getInjectResourceTypein interfaceInjectionCapable- Overrides:
getInjectResourceTypein classEnvironmentProperty
-
setInjectResourceType
public void setInjectResourceType(String resourceType)
- Specified by:
setInjectResourceTypein interfaceInjectionCapable- Overrides:
setInjectResourceTypein classEnvironmentProperty
-
setPersistenceContextType
public void setPersistenceContextType(jakarta.persistence.PersistenceContextType type)
- Specified by:
setPersistenceContextTypein interfaceEntityManagerReference
-
getPersistenceContextType
public jakarta.persistence.PersistenceContextType getPersistenceContextType()
- Specified by:
getPersistenceContextTypein interfaceEntityManagerReference
-
getSynchronizationType
public jakarta.persistence.SynchronizationType getSynchronizationType()
- Specified by:
getSynchronizationTypein interfaceEntityManagerReference
-
setSynchronizationType
public void setSynchronizationType(jakarta.persistence.SynchronizationType synchronizationType)
- Specified by:
setSynchronizationTypein interfaceEntityManagerReference
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceEntityManagerReference
-
setReferringBundleDescriptor
public void setReferringBundleDescriptor(BundleDescriptor referringBundle)
Description copied from interface:EntityManagerReferenceSet the referring bundle, i.e. the bundle within which this reference is declared.- Specified by:
setReferringBundleDescriptorin interfaceEntityManagerReference
-
getReferringBundleDescriptor
public BundleDescriptor getReferringBundleDescriptor()
Description copied from interface:EntityManagerReferenceGet the referring bundle, i.e. the bundle within which this reference is declared.- Specified by:
getReferringBundleDescriptorin interfaceEntityManagerReference
-
isConflict
public boolean isConflict(EntityManagerReferenceDescriptor other)
-
-