Package com.sun.enterprise.deployment
Class PersistenceUnitDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.PersistenceUnitDescriptor
-
- All Implemented Interfaces:
Serializable
public class PersistenceUnitDescriptor extends Descriptor
A persistence.xml file can contain one or mores This class represents information about a . - Author:
- [email protected]
- See Also:
- Serialized Form
-
-
Field Summary
-
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 PersistenceUnitDescriptor()
-
Method Summary
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, 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
-
-
-
-
Method Detail
-
getParent
public PersistenceUnitsDescriptor getParent()
-
setParent
protected void setParent(PersistenceUnitsDescriptor parent)
-
getName
public String getName()
Description copied from class:Descriptor
The name of this descriptor as a String.- Overrides:
getName
in classDescriptor
- Returns:
- the name of this descriptor
-
setName
public void setName(String value)
Description copied from class:Descriptor
Sets the name of this descriptor.- Overrides:
setName
in classDescriptor
- Parameters:
value
- the new name of the descriptor.
-
getTransactionType
public String getTransactionType()
-
setTransactionType
public void setTransactionType(String transactionType)
-
getDescription
public String getDescription()
Description copied from class:Descriptor
The description text of this descriptor as a String.- Overrides:
getDescription
in classDescriptor
- Returns:
- the description text of this descriptor
-
setDescription
public void setDescription(String description)
Description copied from class:Descriptor
Sets the description text of this descriptor.- Overrides:
setDescription
in classDescriptor
- Parameters:
description
- the new description text of the descriptor.
-
getProvider
public String getProvider()
-
setProvider
public void setProvider(String value)
-
getJtaDataSource
public String getJtaDataSource()
-
setJtaDataSource
public void setJtaDataSource(String value)
-
getNonJtaDataSource
public String getNonJtaDataSource()
-
setNonJtaDataSource
public void setNonJtaDataSource(String value)
-
addMappingFile
public void addMappingFile(String mappingFile)
-
addJarFile
public void addJarFile(String jarFile)
-
addClass
public void addClass(String className)
-
getProperties
public Properties getProperties()
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()
-
setExcludeUnlistedClasses
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
-
getSharedCacheMode
public jakarta.persistence.SharedCacheMode getSharedCacheMode()
-
setSharedCacheMode
public void setSharedCacheMode(String sharedCacheMode)
-
getValidationMode
public jakarta.persistence.ValidationMode getValidationMode()
-
setValidationMode
public void setValidationMode(String validationMode)
-
getPuRoot
public String getPuRoot()
-
getAbsolutePuRoot
public String getAbsolutePuRoot()
- Returns:
- the absolute path of the root of this persistence unit
- See Also:
getPuRoot()
,PersistenceUnitsDescriptor.getAbsolutePuRoot()
-
-