public class ParsedPersistenceXmlDescriptor extends Object implements PersistenceUnitDescriptor
<persistence-unit/>
element in a persistence.xml
file
whether parsed directly by Hibernate or passed to us by an EE container as a
PersistenceUnitInfo
.
Easier to consolidate both views into a single contract and extract information through that shared contract.Constructor and Description |
---|
ParsedPersistenceXmlDescriptor(URL persistenceUnitRootUrl) |
public ParsedPersistenceXmlDescriptor(URL persistenceUnitRootUrl)
public URL getPersistenceUnitRootUrl()
PersistenceUnitDescriptor
getPersistenceUnitRootUrl
in interface PersistenceUnitDescriptor
public String getName()
PersistenceUnitDescriptor
getName
in interface PersistenceUnitDescriptor
public void setName(String name)
public Object getNonJtaDataSource()
getNonJtaDataSource
in interface PersistenceUnitDescriptor
public void setNonJtaDataSource(Object nonJtaDataSource)
public Object getJtaDataSource()
getJtaDataSource
in interface PersistenceUnitDescriptor
public void setJtaDataSource(Object jtaDataSource)
public String getProviderClassName()
PersistenceUnitDescriptor
null
if not specified.getProviderClassName
in interface PersistenceUnitDescriptor
public void setProviderClassName(String providerClassName)
public PersistenceUnitTransactionType getTransactionType()
getTransactionType
in interface PersistenceUnitDescriptor
public void setTransactionType(PersistenceUnitTransactionType transactionType)
public boolean isUseQuotedIdentifiers()
PersistenceUnitDescriptor
isUseQuotedIdentifiers
in interface PersistenceUnitDescriptor
true
is quoted identifiers should be used throughout the unit.public void setUseQuotedIdentifiers(boolean useQuotedIdentifiers)
public Properties getProperties()
getProperties
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 void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
public ValidationMode getValidationMode()
getValidationMode
in interface PersistenceUnitDescriptor
public void setValidationMode(String validationMode)
public SharedCacheMode getSharedCacheMode()
getSharedCacheMode
in interface PersistenceUnitDescriptor
public void setSharedCacheMode(String sharedCacheMode)
public List<String> getManagedClassNames()
getManagedClassNames
in interface PersistenceUnitDescriptor
public void addClasses(String... classes)
public List<String> getMappingFileNames()
getMappingFileNames
in interface PersistenceUnitDescriptor
public void addMappingFiles(String... mappingFiles)
public List<URL> getJarFileUrls()
getJarFileUrls
in interface PersistenceUnitDescriptor
public void addJarFileUrl(URL jarFileUrl)
public ClassLoader getClassLoader()
getClassLoader
in interface PersistenceUnitDescriptor
public ClassLoader getTempClassLoader()
getTempClassLoader
in interface PersistenceUnitDescriptor
public void pushClassTransformer(EnhancementContext enhancementContext)
pushClassTransformer
in interface PersistenceUnitDescriptor
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.