Package org.hibernate.jpa.boot.internal
Class PersistenceUnitInfoDescriptor
- java.lang.Object
-
- org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor
-
- All Implemented Interfaces:
PersistenceUnitDescriptor
public class PersistenceUnitInfoDescriptor extends Object implements PersistenceUnitDescriptor
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitInfoDescriptor(jakarta.persistence.spi.PersistenceUnitInfo persistenceUnitInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()List<URL>getJarFileUrls()ObjectgetJtaDataSource()List<String>getManagedClassNames()List<String>getMappingFileNames()StringgetName()Get the persistence unit name,ObjectgetNonJtaDataSource()URLgetPersistenceUnitRootUrl()Get the root url for the persistence unit.PropertiesgetProperties()StringgetProviderClassName()Get the explicitly specified provider class name, ornullif not specified.jakarta.persistence.SharedCacheModegetSharedCacheMode()ClassLoadergetTempClassLoader()jakarta.persistence.spi.PersistenceUnitTransactionTypegetTransactionType()jakarta.persistence.ValidationModegetValidationMode()booleanisExcludeUnlistedClasses()Essentially should scanning for classes be performed? If not, the list of classes available is limited to: classes listed inPersistenceUnitDescriptor.getManagedClassNames()classes named in allPersistenceUnitDescriptor.getMappingFileNames()classes discovered inPersistenceUnitDescriptor.getJarFileUrls()booleanisUseQuotedIdentifiers()Is the use of quoted identifiers in effect for this whole persistence unit?voidpushClassTransformer(EnhancementContext enhancementContext)
-
-
-
Method Detail
-
getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()
Description copied from interface:PersistenceUnitDescriptorGet the root url for the persistence unit. Intended to describe the base for scanning.- Specified by:
getPersistenceUnitRootUrlin interfacePersistenceUnitDescriptor- Returns:
- The root url
-
getName
public String getName()
Description copied from interface:PersistenceUnitDescriptorGet the persistence unit name,- Specified by:
getNamein interfacePersistenceUnitDescriptor- Returns:
- The persistence unit name,
-
getNonJtaDataSource
public Object getNonJtaDataSource()
- Specified by:
getNonJtaDataSourcein interfacePersistenceUnitDescriptor
-
getJtaDataSource
public Object getJtaDataSource()
- Specified by:
getJtaDataSourcein interfacePersistenceUnitDescriptor
-
getProviderClassName
public String getProviderClassName()
Description copied from interface:PersistenceUnitDescriptorGet the explicitly specified provider class name, ornullif not specified.- Specified by:
getProviderClassNamein interfacePersistenceUnitDescriptor- Returns:
- The specified provider class name
-
getTransactionType
public jakarta.persistence.spi.PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionTypein interfacePersistenceUnitDescriptor
-
isUseQuotedIdentifiers
public boolean isUseQuotedIdentifiers()
Description copied from interface:PersistenceUnitDescriptorIs the use of quoted identifiers in effect for this whole persistence unit?- Specified by:
isUseQuotedIdentifiersin interfacePersistenceUnitDescriptor- Returns:
trueis quoted identifiers should be used throughout the unit.
-
getProperties
public Properties getProperties()
- Specified by:
getPropertiesin interfacePersistenceUnitDescriptor
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfacePersistenceUnitDescriptor
-
getTempClassLoader
public ClassLoader getTempClassLoader()
- Specified by:
getTempClassLoaderin interfacePersistenceUnitDescriptor
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()
Description copied from interface:PersistenceUnitDescriptorEssentially should scanning for classes be performed? If not, the list of classes available is limited to:- classes listed in
PersistenceUnitDescriptor.getManagedClassNames() - classes named in all
PersistenceUnitDescriptor.getMappingFileNames() - classes discovered in
PersistenceUnitDescriptor.getJarFileUrls()
- Specified by:
isExcludeUnlistedClassesin interfacePersistenceUnitDescriptor- Returns:
trueif the root url should not be scanned for classes.
- classes listed in
-
getValidationMode
public jakarta.persistence.ValidationMode getValidationMode()
- Specified by:
getValidationModein interfacePersistenceUnitDescriptor
-
getSharedCacheMode
public jakarta.persistence.SharedCacheMode getSharedCacheMode()
- Specified by:
getSharedCacheModein interfacePersistenceUnitDescriptor
-
getManagedClassNames
public List<String> getManagedClassNames()
- Specified by:
getManagedClassNamesin interfacePersistenceUnitDescriptor
-
getMappingFileNames
public List<String> getMappingFileNames()
- Specified by:
getMappingFileNamesin interfacePersistenceUnitDescriptor
-
getJarFileUrls
public List<URL> getJarFileUrls()
- Specified by:
getJarFileUrlsin interfacePersistenceUnitDescriptor
-
pushClassTransformer
public void pushClassTransformer(EnhancementContext enhancementContext)
- Specified by:
pushClassTransformerin interfacePersistenceUnitDescriptor
-
-