public interface PersistenceUnitDescriptor
Abstraction for dealing with either <persistence-unit/>
information whether that comes from
an EE container in the form of PersistenceUnitInfo
or in an SE environment
where Hibernate has parsed the persistence.xml
file itself.
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
List<URL> |
getJarFileUrls() |
Object |
getJtaDataSource() |
List<String> |
getManagedClassNames() |
List<String> |
getMappingFileNames() |
String |
getName()
Get the persistence unit name,
|
Object |
getNonJtaDataSource() |
URL |
getPersistenceUnitRootUrl()
Get the root url for the persistence unit.
|
Properties |
getProperties() |
String |
getProviderClassName()
Get the explicitly specified provider class name, or
null if not specified. |
SharedCacheMode |
getSharedCacheMode() |
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:<ul>
<li>classes listed in
getManagedClassNames() </li>
<li>classes named in all getMappingFileNames() </li>
<li>classes discovered in getJarFileUrls() </li>
</ul> |
boolean |
isUseQuotedIdentifiers()
Is the use of quoted identifiers in effect for this whole persistence unit?
|
void |
pushClassTransformer(EnhancementContext enhancementContext) |
URL getPersistenceUnitRootUrl()
Get the root url for the persistence unit. Intended to describe the base for scanning.
String getName()
Get the persistence unit name,
String getProviderClassName()
Get the explicitly specified provider class name, or null
if not specified.
boolean isUseQuotedIdentifiers()
Is the use of quoted identifiers in effect for this whole persistence unit?
true
is quoted identifiers should be used throughout the unit.boolean isExcludeUnlistedClasses()
Essentially should scanning for classes be performed? If not, the list of classes available is limited to:<ul>
<li>classes listed in getManagedClassNames()
</li>
<li>classes named in all getMappingFileNames()
</li>
<li>classes discovered in getJarFileUrls()
</li>
</ul>
true
if the root url should not be scanned for classes.PersistenceUnitTransactionType getTransactionType()
ValidationMode getValidationMode()
SharedCacheMode getSharedCacheMode()
Object getNonJtaDataSource()
Object getJtaDataSource()
Properties getProperties()
ClassLoader getClassLoader()
ClassLoader getTempClassLoader()
void pushClassTransformer(EnhancementContext enhancementContext)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.