接口 PersistenceUnitDescriptor
-
public interface PersistenceUnitDescriptorAbstraction for dealing with either<persistence-unit/>information whether that comes from an EE container in the form ofPersistenceUnitInfoor in an SE environment where Hibernate has parsed thepersistence.xmlfile itself.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.javax.persistence.SharedCacheModegetSharedCacheMode()ClassLoadergetTempClassLoader()javax.persistence.spi.PersistenceUnitTransactionTypegetTransactionType()javax.persistence.ValidationModegetValidationMode()booleanisExcludeUnlistedClasses()Essentially should scanning for classes be performed?booleanisUseQuotedIdentifiers()Is the use of quoted identifiers in effect for this whole persistence unit?voidpushClassTransformer(EnhancementContext enhancementContext)
-
-
-
方法详细资料
-
getPersistenceUnitRootUrl
URL getPersistenceUnitRootUrl()
Get the root url for the persistence unit. Intended to describe the base for scanning.- 返回:
- The root url
-
getName
String getName()
Get the persistence unit name,- 返回:
- The persistence unit name,
-
getProviderClassName
String getProviderClassName()
Get the explicitly specified provider class name, ornullif not specified.- 返回:
- The specified provider class name
-
isUseQuotedIdentifiers
boolean isUseQuotedIdentifiers()
Is the use of quoted identifiers in effect for this whole persistence unit?- 返回:
trueis quoted identifiers should be used throughout the unit.
-
isExcludeUnlistedClasses
boolean isExcludeUnlistedClasses()
Essentially should scanning for classes be performed? If not, the list of classes available is limited to:- classes listed in
getManagedClassNames() - classes named in all
getMappingFileNames() - classes discovered in
getJarFileUrls()
- 返回:
trueif the root url should not be scanned for classes.
- classes listed in
-
getTransactionType
javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
-
getValidationMode
javax.persistence.ValidationMode getValidationMode()
-
getSharedCacheMode
javax.persistence.SharedCacheMode getSharedCacheMode()
-
getNonJtaDataSource
Object getNonJtaDataSource()
-
getJtaDataSource
Object getJtaDataSource()
-
getProperties
Properties getProperties()
-
getClassLoader
ClassLoader getClassLoader()
-
getTempClassLoader
ClassLoader getTempClassLoader()
-
pushClassTransformer
void pushClassTransformer(EnhancementContext enhancementContext)
-
-