Package org.hibernate.testing.orm.jpa
Class PersistenceUnitDescriptorAdapter
- java.lang.Object
-
- org.hibernate.testing.orm.jpa.PersistenceUnitDescriptorAdapter
-
- All Implemented Interfaces:
PersistenceUnitDescriptor
public class PersistenceUnitDescriptorAdapter extends java.lang.Object implements PersistenceUnitDescriptor
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitDescriptorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoader
getClassLoader()
java.util.List<java.net.URL>
getJarFileUrls()
javax.sql.DataSource
getJtaDataSource()
java.util.List<java.lang.String>
getManagedClassNames()
java.util.List<java.lang.String>
getMappingFileNames()
java.lang.String
getName()
Get the persistence unit name,javax.sql.DataSource
getNonJtaDataSource()
java.net.URL
getPersistenceUnitRootUrl()
Get the root url for the persistence unit.java.util.Properties
getProperties()
java.lang.String
getProviderClassName()
Get the explicitly specified provider class name, ornull
if not specified.SharedCacheMode
getSharedCacheMode()
java.lang.ClassLoader
getTempClassLoader()
PersistenceUnitTransactionType
getTransactionType()
ValidationMode
getValidationMode()
boolean
isExcludeUnlistedClasses()
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
isUseQuotedIdentifiers()
Is the use of quoted identifiers in effect for this whole persistence unit?void
pushClassTransformer(EnhancementContext enhancementContext)
-
-
-
Method Detail
-
getName
public java.lang.String 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
public java.lang.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
-
getTransactionType
public PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionType
in interfacePersistenceUnitDescriptor
-
getJtaDataSource
public javax.sql.DataSource getJtaDataSource()
- Specified by:
getJtaDataSource
in interfacePersistenceUnitDescriptor
-
getNonJtaDataSource
public javax.sql.DataSource getNonJtaDataSource()
- Specified by:
getNonJtaDataSource
in interfacePersistenceUnitDescriptor
-
getMappingFileNames
public java.util.List<java.lang.String> getMappingFileNames()
- Specified by:
getMappingFileNames
in interfacePersistenceUnitDescriptor
-
getJarFileUrls
public java.util.List<java.net.URL> getJarFileUrls()
- Specified by:
getJarFileUrls
in interfacePersistenceUnitDescriptor
-
getPersistenceUnitRootUrl
public java.net.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
-
getManagedClassNames
public java.util.List<java.lang.String> 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
-
getSharedCacheMode
public SharedCacheMode getSharedCacheMode()
- Specified by:
getSharedCacheMode
in interfacePersistenceUnitDescriptor
-
getValidationMode
public ValidationMode getValidationMode()
- Specified by:
getValidationMode
in interfacePersistenceUnitDescriptor
-
getProperties
public java.util.Properties getProperties()
- Specified by:
getProperties
in interfacePersistenceUnitDescriptor
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacePersistenceUnitDescriptor
-
getTempClassLoader
public java.lang.ClassLoader getTempClassLoader()
- Specified by:
getTempClassLoader
in interfacePersistenceUnitDescriptor
-
pushClassTransformer
public void pushClassTransformer(EnhancementContext enhancementContext)
- Specified by:
pushClassTransformer
in interfacePersistenceUnitDescriptor
-
-