public class SEPersistenceUnitInfo
extends java.lang.Object
implements javax.persistence.spi.PersistenceUnitInfo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
excludeUnlistedClasses |
protected java.util.List<java.net.URL> |
jarFileUrls |
protected javax.sql.DataSource |
jtaDataSource |
protected java.util.List<java.lang.String> |
managedClassNames |
protected java.util.List<java.lang.String> |
mappingFiles |
protected javax.sql.DataSource |
nonJtaDataSource |
protected java.lang.String |
persistenceProviderClassName |
protected java.lang.String |
persistenceUnitName |
protected java.net.URL |
persistenceUnitRootUrl |
protected javax.persistence.spi.PersistenceUnitTransactionType |
persistenceUnitTransactionType |
protected java.util.Properties |
properties |
protected java.lang.ClassLoader |
realClassLoader |
protected java.lang.ClassLoader |
tempClassLoader |
| Constructor and Description |
|---|
SEPersistenceUnitInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(javax.persistence.spi.ClassTransformer transformer)
Add a transformer supplied by the provider that will be
called for every new class definition or class redefinition
that gets loaded by the loader returned by the
PersistenceUnitInfo.getClassLoader method.
|
boolean |
excludeUnlistedClasses() |
java.lang.ClassLoader |
getClassLoader() |
java.util.Collection<java.lang.String> |
getJarFiles() |
java.util.List<java.net.URL> |
getJarFileUrls() |
javax.sql.DataSource |
getJtaDataSource() |
java.util.List<java.lang.String> |
getManagedClassNames() |
java.util.List<java.lang.String> |
getMappingFileNames() |
java.lang.ClassLoader |
getNewTempClassLoader()
Return a ClassLoader that the provider may use to temporarily
load any classes, resources, or open URLs.
|
javax.sql.DataSource |
getNonJtaDataSource() |
java.lang.String |
getPersistenceProviderClassName() |
java.lang.String |
getPersistenceUnitName() |
java.net.URL |
getPersistenceUnitRootUrl() |
java.util.Properties |
getProperties() |
javax.persistence.spi.PersistenceUnitTransactionType |
getTransactionType() |
void |
setClassLoader(java.lang.ClassLoader loader) |
void |
setExcludeUnlistedClasses(boolean excludeUnlistedClasses) |
void |
setJarFileUrls(java.util.List<java.net.URL> jarFileUrls) |
void |
setJtaDataSource(javax.sql.DataSource jtaDataSource) |
void |
setManagedClassNames(java.util.List<java.lang.String> managedClassNames) |
void |
setMappingFileNames(java.util.List<java.lang.String> mappingFiles) |
void |
setNewTempClassLoader(java.lang.ClassLoader loader) |
void |
setNonJtaDataSource(javax.sql.DataSource nonJtaDataSource) |
void |
setPersistenceProviderClassName(java.lang.String persistenceProviderClassName) |
void |
setPersistenceUnitName(java.lang.String persistenceUnitName) |
void |
setPersistenceUnitRootUrl(java.net.URL persistenceUnitRootUrl) |
void |
setProperties(java.util.Properties properties) |
void |
setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType persistenceUnitTransactionType) |
protected java.lang.String persistenceUnitName
protected java.lang.String persistenceProviderClassName
protected javax.sql.DataSource jtaDataSource
protected javax.sql.DataSource nonJtaDataSource
protected javax.persistence.spi.PersistenceUnitTransactionType persistenceUnitTransactionType
protected java.util.List<java.lang.String> mappingFiles
protected java.util.List<java.net.URL> jarFileUrls
protected java.util.List<java.lang.String> managedClassNames
protected java.net.URL persistenceUnitRootUrl
protected boolean excludeUnlistedClasses
protected java.util.Properties properties
protected java.lang.ClassLoader tempClassLoader
protected java.lang.ClassLoader realClassLoader
public java.lang.String getPersistenceUnitName()
getPersistenceUnitName in interface javax.persistence.spi.PersistenceUnitInfopublic void setPersistenceUnitName(java.lang.String persistenceUnitName)
public java.lang.String getPersistenceProviderClassName()
getPersistenceProviderClassName in interface javax.persistence.spi.PersistenceUnitInfopublic void setPersistenceProviderClassName(java.lang.String persistenceProviderClassName)
public javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
getTransactionType in interface javax.persistence.spi.PersistenceUnitInfopublic void setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType persistenceUnitTransactionType)
public javax.sql.DataSource getJtaDataSource()
getJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic void setJtaDataSource(javax.sql.DataSource jtaDataSource)
public javax.sql.DataSource getNonJtaDataSource()
getNonJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic void setNonJtaDataSource(javax.sql.DataSource nonJtaDataSource)
public java.util.List<java.lang.String> getMappingFileNames()
getMappingFileNames in interface javax.persistence.spi.PersistenceUnitInfopublic void setMappingFileNames(java.util.List<java.lang.String> mappingFiles)
public java.util.List<java.net.URL> getJarFileUrls()
getJarFileUrls in interface javax.persistence.spi.PersistenceUnitInfopublic void setJarFileUrls(java.util.List<java.net.URL> jarFileUrls)
public java.net.URL getPersistenceUnitRootUrl()
getPersistenceUnitRootUrl in interface javax.persistence.spi.PersistenceUnitInfopublic void setPersistenceUnitRootUrl(java.net.URL persistenceUnitRootUrl)
public java.util.List<java.lang.String> getManagedClassNames()
getManagedClassNames in interface javax.persistence.spi.PersistenceUnitInfopublic void setManagedClassNames(java.util.List<java.lang.String> managedClassNames)
public boolean excludeUnlistedClasses()
excludeUnlistedClasses in interface javax.persistence.spi.PersistenceUnitInfopublic void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
public java.util.Properties getProperties()
getProperties in interface javax.persistence.spi.PersistenceUnitInfopublic void setProperties(java.util.Properties properties)
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic void addTransformer(javax.persistence.spi.ClassTransformer transformer)
addTransformer in interface javax.persistence.spi.PersistenceUnitInfotransformer - A provider-supplied transformer that the
Container invokes at class-(re)definition timepublic java.lang.ClassLoader getNewTempClassLoader()
getNewTempClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic void setNewTempClassLoader(java.lang.ClassLoader loader)
public void setClassLoader(java.lang.ClassLoader loader)
public java.util.Collection<java.lang.String> getJarFiles()