javax.persistence.spi
Interface PersistenceUnitInfo

All Known Implementing Classes:
PersistenceUnitManager

public interface PersistenceUnitInfo

Container interface when creating an EntityManagerFactory.


Method Summary
 void addTransformer(ClassTransformer transformer)
          Adds a class transformer.
 boolean excludeUnlistedClasses()
          Returns true if only listed classes are allowed.
 java.lang.ClassLoader getClassLoader()
          Returns the classloader the provider should use to load classes, resources or URLs.
 java.util.List<java.net.URL> getJarFileUrls()
          Returns the list of jars for the managed classes.
 javax.sql.DataSource getJtaDataSource()
          Returns the jta-enabled data source.
 java.util.List<java.lang.String> getManagedClassNames()
          Returns the list of managed classes.
 java.util.List<java.lang.String> getMappingFileNames()
          Returns the mapping file names.
 java.lang.ClassLoader getNewTempClassLoader()
          Returns a temporary class loader.
 javax.sql.DataSource getNonJtaDataSource()
          Returns the non-jta-enabled data source.
 java.lang.String getPersistenceProviderClassName()
          Returns the full class name of the persistence provider.
 java.lang.String getPersistenceUnitName()
          Returns the name.
 java.net.URL getPersistenceUnitRootUrl()
          Returns the root persistence unit.
 java.lang.String getPersistenceXMLSchemaVersion()
           
 java.util.Properties getProperties()
          Returns a properties object.
 SharedCacheMode getSharedCacheMode()
           
 PersistenceUnitTransactionType getTransactionType()
          Returns the transaction handling.
 ValidationMode getValidationMode()
           
 

Method Detail

getPersistenceUnitName

java.lang.String getPersistenceUnitName()
Returns the name.


getPersistenceProviderClassName

java.lang.String getPersistenceProviderClassName()
Returns the full class name of the persistence provider.


getTransactionType

PersistenceUnitTransactionType getTransactionType()
Returns the transaction handling.


getJtaDataSource

javax.sql.DataSource getJtaDataSource()
Returns the jta-enabled data source.


getNonJtaDataSource

javax.sql.DataSource getNonJtaDataSource()
Returns the non-jta-enabled data source.


getMappingFileNames

java.util.List<java.lang.String> getMappingFileNames()
Returns the mapping file names. The files are resource-loadable from the classpath.


getJarFileUrls

java.util.List<java.net.URL> getJarFileUrls()
Returns the list of jars for the managed classes.


getPersistenceUnitRootUrl

java.net.URL getPersistenceUnitRootUrl()
Returns the root persistence unit.


getManagedClassNames

java.util.List<java.lang.String> getManagedClassNames()
Returns the list of managed classes.


excludeUnlistedClasses

boolean excludeUnlistedClasses()
Returns true if only listed classes are allowed.


getSharedCacheMode

SharedCacheMode getSharedCacheMode()
Since:
JPA 2.0

getValidationMode

ValidationMode getValidationMode()
Since:
JPA 2.0

getProperties

java.util.Properties getProperties()
Returns a properties object.


getPersistenceXMLSchemaVersion

java.lang.String getPersistenceXMLSchemaVersion()

getClassLoader

java.lang.ClassLoader getClassLoader()
Returns the classloader the provider should use to load classes, resources or URLs.


addTransformer

void addTransformer(ClassTransformer transformer)
Adds a class transformer.


getNewTempClassLoader

java.lang.ClassLoader getNewTempClassLoader()
Returns a temporary class loader.