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()
PersistenceUnitDescriptorgetPersistenceUnitRootUrl in interface PersistenceUnitDescriptorpublic String getName()
PersistenceUnitDescriptorgetName in interface PersistenceUnitDescriptorpublic void setName(String name)
public Object getNonJtaDataSource()
getNonJtaDataSource in interface PersistenceUnitDescriptorpublic void setNonJtaDataSource(Object nonJtaDataSource)
public Object getJtaDataSource()
getJtaDataSource in interface PersistenceUnitDescriptorpublic void setJtaDataSource(Object jtaDataSource)
public String getProviderClassName()
PersistenceUnitDescriptornull if not specified.getProviderClassName in interface PersistenceUnitDescriptorpublic void setProviderClassName(String providerClassName)
public PersistenceUnitTransactionType getTransactionType()
getTransactionType in interface PersistenceUnitDescriptorpublic void setTransactionType(PersistenceUnitTransactionType transactionType)
public boolean isUseQuotedIdentifiers()
PersistenceUnitDescriptorisUseQuotedIdentifiers in interface PersistenceUnitDescriptortrue is quoted identifiers should be used throughout the unit.public void setUseQuotedIdentifiers(boolean useQuotedIdentifiers)
public Properties getProperties()
getProperties in interface PersistenceUnitDescriptorpublic boolean isExcludeUnlistedClasses()
PersistenceUnitDescriptorPersistenceUnitDescriptor.getManagedClassNames()PersistenceUnitDescriptor.getMappingFileNames()PersistenceUnitDescriptor.getJarFileUrls()isExcludeUnlistedClasses in interface PersistenceUnitDescriptortrue if the root url should not be scanned for classes.public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
public ValidationMode getValidationMode()
getValidationMode in interface PersistenceUnitDescriptorpublic void setValidationMode(String validationMode)
public SharedCacheMode getSharedCacheMode()
getSharedCacheMode in interface PersistenceUnitDescriptorpublic void setSharedCacheMode(String sharedCacheMode)
public List<String> getManagedClassNames()
getManagedClassNames in interface PersistenceUnitDescriptorpublic void addClasses(String... classes)
public List<String> getMappingFileNames()
getMappingFileNames in interface PersistenceUnitDescriptorpublic void addMappingFiles(String... mappingFiles)
public List<URL> getJarFileUrls()
getJarFileUrls in interface PersistenceUnitDescriptorpublic void addJarFileUrl(URL jarFileUrl)
public ClassLoader getClassLoader()
getClassLoader in interface PersistenceUnitDescriptorpublic void pushClassTransformer(List<String> entityClassNames)
pushClassTransformer in interface PersistenceUnitDescriptorCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.