Package org.hibernate.jpa.boot.spi
Interface PersistenceUnitDescriptor
- All Known Implementing Classes:
EntityManagerFactoryBasedFunctionalTest.TestingPersistenceUnitDescriptorImpl
,ParsedPersistenceXmlDescriptor
,PersistenceConfigurationDescriptor
,PersistenceUnitDescriptorAdapter
,PersistenceUnitInfoDescriptor
public interface PersistenceUnitDescriptor
Abstraction for dealing with
<persistence-unit/>
information
specified in the persistence.xml
file, which might be:
- passed by the Jakarta EE container as an instance of
PersistenceUnitInfo
, or, - in an SE environment, parsed by Hibernate itself.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the persistence unit name,Get the root url for the persistence unit.Get the explicitly specified provider class name, ornull
if not specified.Deprecated, for removal: This API element is subject to removal in a future version.boolean
Essentially should scanning for classes be performed? If not, the list of classes available is limited to: classes listed ingetManagedClassNames()
classes named in allgetMappingFileNames()
classes discovered ingetJarFileUrls()
boolean
Is the use of quoted identifiers in effect for this whole persistence unit?void
pushClassTransformer
(EnhancementContext enhancementContext)
-
Method Details
-
getPersistenceUnitRootUrl
URL getPersistenceUnitRootUrl()Get the root url for the persistence unit. Intended to describe the base for scanning.- Returns:
- The root url
-
getName
String getName()Get the persistence unit name,- Returns:
- The persistence unit name,
-
getProviderClassName
String getProviderClassName()Get the explicitly specified provider class name, ornull
if not specified.- Returns:
- The specified provider class name
-
isUseQuotedIdentifiers
boolean isUseQuotedIdentifiers()Is the use of quoted identifiers in effect for this whole persistence unit?- Returns:
true
is quoted identifiers should be used throughout the unit.
-
isExcludeUnlistedClasses
boolean isExcludeUnlistedClasses()Essentially should scanning for classes be performed? If not, the list of classes available is limited to:- classes listed in
getManagedClassNames()
- classes named in all
getMappingFileNames()
- classes discovered in
getJarFileUrls()
- Returns:
true
if the root url should not be scanned for classes.
- classes listed in
-
getPersistenceUnitTransactionType
PersistenceUnitTransactionType getPersistenceUnitTransactionType() -
getTransactionType
Deprecated, for removal: This API element is subject to removal in a future version.sincePersistenceUnitTransactionType
will be removed in JPA 4 -
getValidationMode
ValidationMode getValidationMode() -
getManagedClassNames
-
getMappingFileNames
-
getJarFileUrls
-
getNonJtaDataSource
Object getNonJtaDataSource() -
getJtaDataSource
Object getJtaDataSource() -
getProperties
Properties getProperties() -
getClassLoader
ClassLoader getClassLoader() -
getTempClassLoader
ClassLoader getTempClassLoader() -
pushClassTransformer
-
getClassTransformer
ClassTransformer getClassTransformer()
-
PersistenceUnitTransactionType
will be removed in JPA 4