public class PersistenceUnitInfoDescriptor extends java.lang.Object implements PersistenceUnitDescriptor
Constructor and Description |
---|
PersistenceUnitInfoDescriptor(javax.persistence.spi.PersistenceUnitInfo persistenceUnitInfo) |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassLoader() |
java.util.List<java.net.URL> |
getJarFileUrls() |
java.lang.Object |
getJtaDataSource() |
java.util.List<java.lang.String> |
getManagedClassNames() |
java.util.List<java.lang.String> |
getMappingFileNames() |
java.lang.String |
getName()
Get the persistence unit name,
|
java.lang.Object |
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, or
null if not specified. |
javax.persistence.SharedCacheMode |
getSharedCacheMode() |
java.lang.ClassLoader |
getTempClassLoader() |
javax.persistence.spi.PersistenceUnitTransactionType |
getTransactionType() |
javax.persistence.ValidationMode |
getValidationMode() |
boolean |
isExcludeUnlistedClasses()
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()
|
boolean |
isUseQuotedIdentifiers()
Is the use of quoted identifiers in effect for this whole persistence unit?
|
void |
pushClassTransformer(EnhancementContext enhancementContext) |
public PersistenceUnitInfoDescriptor(javax.persistence.spi.PersistenceUnitInfo persistenceUnitInfo)
public java.net.URL getPersistenceUnitRootUrl()
PersistenceUnitDescriptor
getPersistenceUnitRootUrl
in interface PersistenceUnitDescriptor
public java.lang.String getName()
PersistenceUnitDescriptor
getName
in interface PersistenceUnitDescriptor
public java.lang.Object getNonJtaDataSource()
getNonJtaDataSource
in interface PersistenceUnitDescriptor
public java.lang.Object getJtaDataSource()
getJtaDataSource
in interface PersistenceUnitDescriptor
public java.lang.String getProviderClassName()
PersistenceUnitDescriptor
null
if not specified.getProviderClassName
in interface PersistenceUnitDescriptor
public javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
getTransactionType
in interface PersistenceUnitDescriptor
public boolean isUseQuotedIdentifiers()
PersistenceUnitDescriptor
isUseQuotedIdentifiers
in interface PersistenceUnitDescriptor
true
is quoted identifiers should be used throughout the unit.public java.util.Properties getProperties()
getProperties
in interface PersistenceUnitDescriptor
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface PersistenceUnitDescriptor
public java.lang.ClassLoader getTempClassLoader()
getTempClassLoader
in interface PersistenceUnitDescriptor
public boolean isExcludeUnlistedClasses()
PersistenceUnitDescriptor
PersistenceUnitDescriptor.getManagedClassNames()
PersistenceUnitDescriptor.getMappingFileNames()
PersistenceUnitDescriptor.getJarFileUrls()
isExcludeUnlistedClasses
in interface PersistenceUnitDescriptor
true
if the root url should not be scanned for classes.public javax.persistence.ValidationMode getValidationMode()
getValidationMode
in interface PersistenceUnitDescriptor
public javax.persistence.SharedCacheMode getSharedCacheMode()
getSharedCacheMode
in interface PersistenceUnitDescriptor
public java.util.List<java.lang.String> getManagedClassNames()
getManagedClassNames
in interface PersistenceUnitDescriptor
public java.util.List<java.lang.String> getMappingFileNames()
getMappingFileNames
in interface PersistenceUnitDescriptor
public java.util.List<java.net.URL> getJarFileUrls()
getJarFileUrls
in interface PersistenceUnitDescriptor
public void pushClassTransformer(EnhancementContext enhancementContext)
pushClassTransformer
in interface PersistenceUnitDescriptor
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.