Top Description Methods
org.hibernate.jpa.boot.spi

public Interface PersistenceUnitDescriptor

Known Direct Implementers
org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor, org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor
Imports
java.net.URL, java.util.List, .Properties, javax.persistence.SharedCacheMode, .ValidationMode, javax.persistence.spi.PersistenceUnitTransactionType, org.hibernate.bytecode.enhance.spi.EnhancementContext

Abstraction for dealing with either <persistence-unit/> information whether that comes from an EE container in the form of javax.persistence.spi.PersistenceUnitInfo or in an SE environment where Hibernate has parsed the persistence.xml file itself.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public ClassLoader
public List<URL>
public Object
public List<String>
public List<String>
public String

Returns:

The persistence unit name,
getName
()

Get the persistence unit name,

public Object
public URL

Returns:

The root url
getPersistenceUnitRootUrl
()

Get the root url for the persistence unit.

public Properties
public String

Returns:

The specified provider class name
getProviderClassName
()

Get the explicitly specified provider class name, or null if not specified.

public SharedCacheMode
public ClassLoader
public PersistenceUnitTransactionType
public ValidationMode
public boolean

Returns:

true if the root url should not be scanned for classes.
isExcludeUnlistedClasses
()

Essentially should scanning for classes be performed?

public boolean

Returns:

true is quoted identifiers should be used throughout the unit.
isUseQuotedIdentifiers
()

Is the use of quoted identifiers in effect for this whole persistence unit?

public void

Method Detail

getClassLoaderback to summary
public ClassLoader getClassLoader()
getJarFileUrlsback to summary
public List<URL> getJarFileUrls()
getJtaDataSourceback to summary
public Object getJtaDataSource()
getManagedClassNamesback to summary
public List<String> getManagedClassNames()
getMappingFileNamesback to summary
public List<String> getMappingFileNames()
getNameback to summary
public String getName()

Get the persistence unit name,

Returns:String

The persistence unit name,

getNonJtaDataSourceback to summary
public Object getNonJtaDataSource()
getPersistenceUnitRootUrlback to summary
public URL getPersistenceUnitRootUrl()

Get the root url for the persistence unit. Intended to describe the base for scanning.

Returns:URL

The root url

getPropertiesback to summary
public Properties getProperties()
getProviderClassNameback to summary
public String getProviderClassName()

Get the explicitly specified provider class name, or null if not specified.

Returns:String

The specified provider class name

getSharedCacheModeback to summary
public SharedCacheMode getSharedCacheMode()
getTempClassLoaderback to summary
public ClassLoader getTempClassLoader()
getTransactionTypeback to summary
public PersistenceUnitTransactionType getTransactionType()
getValidationModeback to summary
public ValidationMode getValidationMode()
isExcludeUnlistedClassesback to summary
public boolean isExcludeUnlistedClasses()

Essentially should scanning for classes be performed? If not, the list of classes available is limited to:

Returns:boolean

true if the root url should not be scanned for classes.

isUseQuotedIdentifiersback to summary
public boolean isUseQuotedIdentifiers()

Is the use of quoted identifiers in effect for this whole persistence unit?

Returns:boolean

true is quoted identifiers should be used throughout the unit.

pushClassTransformerback to summary
public void pushClassTransformer(EnhancementContext enhancementContext)