Package org.hibernate.jpa.boot.spi
Interface PersistenceUnitDescriptor
-
- All Known Implementing Classes:
PersistenceUnitDescriptorAdapter
public interface PersistenceUnitDescriptorAbstraction for dealing with either<persistence-unit/>information whether that comes from an EE container in the form ofPersistenceUnitInfoor in an SE environment where Hibernate has parsed thepersistence.xmlfile itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassLoadergetClassLoader()java.util.List<java.net.URL>getJarFileUrls()java.lang.ObjectgetJtaDataSource()java.util.List<java.lang.String>getManagedClassNames()java.util.List<java.lang.String>getMappingFileNames()java.lang.StringgetName()Get the persistence unit name,java.lang.ObjectgetNonJtaDataSource()java.net.URLgetPersistenceUnitRootUrl()Get the root url for the persistence unit.java.util.PropertiesgetProperties()java.lang.StringgetProviderClassName()Get the explicitly specified provider class name, ornullif not specified.SharedCacheModegetSharedCacheMode()java.lang.ClassLoadergetTempClassLoader()PersistenceUnitTransactionTypegetTransactionType()ValidationModegetValidationMode()booleanisExcludeUnlistedClasses()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()booleanisUseQuotedIdentifiers()Is the use of quoted identifiers in effect for this whole persistence unit?voidpushClassTransformer(EnhancementContext enhancementContext)
-
-
-
Method Detail
-
getPersistenceUnitRootUrl
java.net.URL getPersistenceUnitRootUrl()
Get the root url for the persistence unit. Intended to describe the base for scanning.- Returns:
- The root url
-
getName
java.lang.String getName()
Get the persistence unit name,- Returns:
- The persistence unit name,
-
getProviderClassName
java.lang.String getProviderClassName()
Get the explicitly specified provider class name, ornullif 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:
trueis 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:
trueif the root url should not be scanned for classes.
- classes listed in
-
getTransactionType
PersistenceUnitTransactionType getTransactionType()
-
getValidationMode
ValidationMode getValidationMode()
-
getSharedCacheMode
SharedCacheMode getSharedCacheMode()
-
getManagedClassNames
java.util.List<java.lang.String> getManagedClassNames()
-
getMappingFileNames
java.util.List<java.lang.String> getMappingFileNames()
-
getJarFileUrls
java.util.List<java.net.URL> getJarFileUrls()
-
getNonJtaDataSource
java.lang.Object getNonJtaDataSource()
-
getJtaDataSource
java.lang.Object getJtaDataSource()
-
getProperties
java.util.Properties getProperties()
-
getClassLoader
java.lang.ClassLoader getClassLoader()
-
getTempClassLoader
java.lang.ClassLoader getTempClassLoader()
-
pushClassTransformer
void pushClassTransformer(EnhancementContext enhancementContext)
-
-