Package org.hibernate.testing.orm.jpa
Class PersistenceUnitDescriptorAdapter
java.lang.Object
org.hibernate.testing.orm.jpa.PersistenceUnitDescriptorAdapter
- All Implemented Interfaces:
PersistenceUnitDescriptor
-
Constructor Summary
Constructors -
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.boolean
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()
boolean
Is the use of quoted identifiers in effect for this whole persistence unit?void
pushClassTransformer
(EnhancementContext enhancementContext)
-
Constructor Details
-
PersistenceUnitDescriptorAdapter
public PersistenceUnitDescriptorAdapter()
-
-
Method Details
-
getName
Description copied from interface:PersistenceUnitDescriptor
Get the persistence unit name,- Specified by:
getName
in interfacePersistenceUnitDescriptor
- Returns:
- The persistence unit 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.
-
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
-
getPersistenceUnitTransactionType
- Specified by:
getPersistenceUnitTransactionType
in interfacePersistenceUnitDescriptor
-
getTransactionType
- Specified by:
getTransactionType
in interfacePersistenceUnitDescriptor
-
getJtaDataSource
- Specified by:
getJtaDataSource
in interfacePersistenceUnitDescriptor
-
getNonJtaDataSource
- Specified by:
getNonJtaDataSource
in interfacePersistenceUnitDescriptor
-
getMappingFileNames
- Specified by:
getMappingFileNames
in interfacePersistenceUnitDescriptor
-
getJarFileUrls
- Specified by:
getJarFileUrls
in interfacePersistenceUnitDescriptor
-
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
-
getManagedClassNames
- Specified by:
getManagedClassNames
in interfacePersistenceUnitDescriptor
-
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
-
getValidationMode
- Specified by:
getValidationMode
in interfacePersistenceUnitDescriptor
-
getProperties
- Specified by:
getProperties
in interfacePersistenceUnitDescriptor
-
getClassLoader
- Specified by:
getClassLoader
in interfacePersistenceUnitDescriptor
-
getTempClassLoader
- Specified by:
getTempClassLoader
in interfacePersistenceUnitDescriptor
-
pushClassTransformer
- Specified by:
pushClassTransformer
in interfacePersistenceUnitDescriptor
-
getClassTransformer
- Specified by:
getClassTransformer
in interfacePersistenceUnitDescriptor
-