Interface PersistenceUnitDescriptor
- All Known Implementing Classes:
PersistenceConfigurationDescriptor
public interface PersistenceUnitDescriptor
Abstraction for dealing with <persistence-unit/> information
specified in the persistence.xml file. This information can
come from either:
- from the Jakarta EE container as an instance of
PersistenceUnitInfo - in an SE environment, parsed by Hibernate itself
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The persistence unit name.The root url for the persistence unit.The explicitly specified provider class name, ornullif not specified.booleanbooleanWhether scanning for classes should be performed.booleanWhether the use of identifier quoting is in effect for this whole persistence unit.pushClassTransformer(EnhancementContext enhancementContext)
-
Method Details
-
getPersistenceUnitRootUrl
URL getPersistenceUnitRootUrl()The root url for the persistence unit.- Implementation Note:
- When Hibernate performs scanning, this URL is used as the base for scanning.
-
getName
-
getProviderClassName
String getProviderClassName()The explicitly specified provider class name, ornullif not specified.- See Also:
-
isUseQuotedIdentifiers
boolean isUseQuotedIdentifiers()Whether the use of identifier quoting is in effect for this whole persistence unit. -
isExcludeUnlistedClasses
boolean isExcludeUnlistedClasses()Whether scanning for classes should 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()
- See Also:
- classes listed in
-
getDefaultToOneFetchType
FetchType getDefaultToOneFetchType()- Since:
- 8.0
- See Also:
-
getPersistenceUnitTransactionType
PersistenceUnitTransactionType getPersistenceUnitTransactionType()- See Also:
-
getValidationMode
ValidationMode getValidationMode()- See Also:
-
getManagedClassNames
-
getMappingFileNames
-
getJarFileUrls
-
getNonJtaDataSource
Object getNonJtaDataSource()- See Also:
-
getJtaDataSource
Object getJtaDataSource()- See Also:
-
getProperties
Properties getProperties()- See Also:
-
getClassLoader
ClassLoader getClassLoader()- See Also:
-
getTempClassLoader
ClassLoader getTempClassLoader()- See Also:
-
isClassTransformerRegistrationDisabled
boolean isClassTransformerRegistrationDisabled() -
pushClassTransformer
-