Package org.hibernate.testing.orm.junit
Class EntityManagerFactoryBasedFunctionalTest.TestingPersistenceUnitDescriptorImpl
- java.lang.Object
-
- org.hibernate.testing.orm.junit.EntityManagerFactoryBasedFunctionalTest.TestingPersistenceUnitDescriptorImpl
-
- All Implemented Interfaces:
PersistenceUnitDescriptor
- Enclosing class:
- EntityManagerFactoryBasedFunctionalTest
public static class EntityManagerFactoryBasedFunctionalTest.TestingPersistenceUnitDescriptorImpl extends Object implements PersistenceUnitDescriptor
-
-
Constructor Summary
Constructors Constructor Description TestingPersistenceUnitDescriptorImpl(String name)
-
Method Summary
-
-
-
Constructor Detail
-
TestingPersistenceUnitDescriptorImpl
public TestingPersistenceUnitDescriptorImpl(String name)
-
-
Method Detail
-
getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()
Description copied from interface:PersistenceUnitDescriptor
Get the root url for the persistence unit. Intended to describe the base for scanning.- Specified by:
getPersistenceUnitRootUrl
in interfacePersistenceUnitDescriptor
- Returns:
- The root url
-
getName
public String getName()
Description copied from interface:PersistenceUnitDescriptor
Get the persistence unit name,- Specified by:
getName
in interfacePersistenceUnitDescriptor
- Returns:
- The persistence unit name,
-
getProviderClassName
public String getProviderClassName()
Description copied from interface:PersistenceUnitDescriptor
Get the explicitly specified provider class name, ornull
if not specified.- Specified by:
getProviderClassName
in interfacePersistenceUnitDescriptor
- Returns:
- The specified provider class name
-
isUseQuotedIdentifiers
public boolean isUseQuotedIdentifiers()
Description copied from interface:PersistenceUnitDescriptor
Is the use of quoted identifiers in effect for this whole persistence unit?- Specified by:
isUseQuotedIdentifiers
in interfacePersistenceUnitDescriptor
- Returns:
true
is quoted identifiers should be used throughout the unit.
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()
Description copied from interface:PersistenceUnitDescriptor
Essentially 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:
isExcludeUnlistedClasses
in interfacePersistenceUnitDescriptor
- Returns:
true
if the root url should not be scanned for classes.
- classes listed in
-
getTransactionType
public PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionType
in interfacePersistenceUnitDescriptor
-
getValidationMode
public ValidationMode getValidationMode()
- Specified by:
getValidationMode
in interfacePersistenceUnitDescriptor
-
getSharedCacheMode
public SharedCacheMode getSharedCacheMode()
- Specified by:
getSharedCacheMode
in interfacePersistenceUnitDescriptor
-
getManagedClassNames
public List<String> getManagedClassNames()
- Specified by:
getManagedClassNames
in interfacePersistenceUnitDescriptor
-
getMappingFileNames
public List<String> getMappingFileNames()
- Specified by:
getMappingFileNames
in interfacePersistenceUnitDescriptor
-
getJarFileUrls
public List<URL> getJarFileUrls()
- Specified by:
getJarFileUrls
in interfacePersistenceUnitDescriptor
-
getNonJtaDataSource
public Object getNonJtaDataSource()
- Specified by:
getNonJtaDataSource
in interfacePersistenceUnitDescriptor
-
getJtaDataSource
public Object getJtaDataSource()
- Specified by:
getJtaDataSource
in interfacePersistenceUnitDescriptor
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfacePersistenceUnitDescriptor
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacePersistenceUnitDescriptor
-
getTempClassLoader
public ClassLoader getTempClassLoader()
- Specified by:
getTempClassLoader
in interfacePersistenceUnitDescriptor
-
pushClassTransformer
public void pushClassTransformer(EnhancementContext enhancementContext)
- Specified by:
pushClassTransformer
in interfacePersistenceUnitDescriptor
-
getClassTransformer
public ClassTransformer getClassTransformer()
- Specified by:
getClassTransformer
in interfacePersistenceUnitDescriptor
-
-