Methods Summary |
---|
public 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. The transformer
has no effect on the result returned by the
PersistenceUnitInfo.getNewTempClassLoader method.
Classes are only transformed once within the same classloading
scope, regardless of how many persistence units they may be
a part of.
// not required for our Java SE implementation
|
public boolean | excludeUnlistedClasses()
return excludeUnlistedClasses;
|
public java.lang.ClassLoader | getClassLoader()
return realClassLoader;
|
public java.util.List | getJarFileUrls()
if (jarFileUrls == null) { // lazy initialization
List<URL> jarFileUrls = new ArrayList<URL>(jarFiles.size());
for (String jarFile : jarFiles) {
try {
// build a URL relative to the PU Root
URL jarFileURL = new URL(persistenceUnitRootUrl, jarFile);
jarFileUrls.add(jarFileURL);
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
}
synchronized(this) {
this.jarFileUrls = jarFileUrls;
}
}
return Collections.unmodifiableList(jarFileUrls);
|
public java.util.Collection | getJarFiles()
return jarFiles;
|
public javax.sql.DataSource | getJtaDataSource()
return jtaDataSource;
|
public java.util.List | getManagedClassNames()
return managedClassNames;
|
public java.util.List | getMappingFileNames()
return mappingFiles;
|
public java.lang.ClassLoader | getNewTempClassLoader()Return a ClassLoader that the provider may use to temporarily
load any classes, resources, or open URLs. The scope and
classpath of this loader is exactly the same as that of the
loader returned by PersistenceUnitInfo.getClassLoader. None of the
classes loaded by this class loader will be visible to
application components.
return tempClassLoader;
|
public javax.sql.DataSource | getNonJtaDataSource()
return nonJtaDataSource;
|
public java.lang.String | getPersistenceProviderClassName()
return persistenceProviderClassName;
|
public java.lang.String | getPersistenceUnitName()
return persistenceUnitName;
|
public java.net.URL | getPersistenceUnitRootUrl()
return persistenceUnitRootUrl;
|
public java.util.Properties | getProperties()
return properties;
|
public javax.persistence.spi.PersistenceUnitTransactionType | getTransactionType()
return persistenceUnitTransactionType;
|
public void | setClassLoader(java.lang.ClassLoader loader)
this.realClassLoader = loader;
|
public void | setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
this.excludeUnlistedClasses = excludeUnlistedClasses;
|
public void | setJarFileUrls(java.util.List jarFileUrls)
this.jarFileUrls = jarFileUrls;
|
public void | setJtaDataSource(javax.sql.DataSource jtaDataSource)
this.jtaDataSource = jtaDataSource;
|
public void | setManagedClassNames(java.util.List managedClassNames)
this.managedClassNames = managedClassNames;
|
public void | setMappingFileNames(java.util.List mappingFiles)
this.mappingFiles = mappingFiles;
|
public void | setNewTempClassLoader(java.lang.ClassLoader loader)
this.tempClassLoader = loader;
|
public void | setNonJtaDataSource(javax.sql.DataSource nonJtaDataSource)
this.nonJtaDataSource = nonJtaDataSource;
|
public void | setPersistenceProviderClassName(java.lang.String persistenceProviderClassName)
this.persistenceProviderClassName = persistenceProviderClassName;
|
public void | setPersistenceUnitName(java.lang.String persistenceUnitName)
this.persistenceUnitName = persistenceUnitName;
|
public void | setPersistenceUnitRootUrl(java.net.URL persistenceUnitRootUrl)
this.persistenceUnitRootUrl = persistenceUnitRootUrl;
|
public void | setProperties(java.util.Properties properties)
this.properties = properties;
|
public void | setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType persistenceUnitTransactionType)
this.persistenceUnitTransactionType = persistenceUnitTransactionType;
|