org.apache.geronimo.persistence
Class PersistenceUnitGBean

java.lang.Object
  extended by org.apache.geronimo.persistence.PersistenceUnitGBean
All Implemented Interfaces:
GBeanLifecycle

public class PersistenceUnitGBean
extends Object
implements GBeanLifecycle

Version:
$Rev: 735768 $ $Date: 2009-01-19 10:26:42 -0800 (Mon, 19 Jan 2009) $

Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
PersistenceUnitGBean()
           
PersistenceUnitGBean(String persistenceUnitName, String persistenceProviderClassName, String persistenceUnitTransactionTypeString, ResourceSource<javax.resource.ResourceException> jtaDataSourceWrapper, ResourceSource<javax.resource.ResourceException> nonJtaDataSourceWrapper, List<String> mappingFileNamesUntyped, List<String> jarFileUrlsUntyped, String persistenceUnitRoot, List<String> managedClassNames, boolean excludeUnlistedClassesValue, Properties properties, TransactionManagerImpl transactionManager, Collection<ExtendedEntityManagerRegistry> entityManagerRegistry, URL configurationBaseURL, ClassLoader classLoader)
           
 
Method Summary
 void addTransformer(javax.persistence.spi.ClassTransformer classTransformer)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 boolean excludeUnlistedClasses()
           
 ClassLoader getClassLoader()
           
 javax.persistence.EntityManager getEntityManager(boolean transactionScoped, Map properties)
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
           
static GBeanInfo getGBeanInfo()
           
 List<URL> getJarFileUrls()
           
 DataSource getJtaDataSource()
           
 List<String> getManagedClassNames()
           
 List<String> getMappingFileNames()
           
 ClassLoader getNewTempClassLoader()
           
 DataSource getNonJtaDataSource()
           
 String getPersistenceProviderClassName()
           
 String getPersistenceUnitName()
           
 String getPersistenceUnitRoot()
           
 URL getPersistenceUnitRootUrl()
           
 Properties getProperties()
           
 javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

PersistenceUnitGBean

public PersistenceUnitGBean()

PersistenceUnitGBean

public PersistenceUnitGBean(String persistenceUnitName,
                            String persistenceProviderClassName,
                            String persistenceUnitTransactionTypeString,
                            ResourceSource<javax.resource.ResourceException> jtaDataSourceWrapper,
                            ResourceSource<javax.resource.ResourceException> nonJtaDataSourceWrapper,
                            List<String> mappingFileNamesUntyped,
                            List<String> jarFileUrlsUntyped,
                            String persistenceUnitRoot,
                            List<String> managedClassNames,
                            boolean excludeUnlistedClassesValue,
                            Properties properties,
                            TransactionManagerImpl transactionManager,
                            Collection<ExtendedEntityManagerRegistry> entityManagerRegistry,
                            URL configurationBaseURL,
                            ClassLoader classLoader)
                     throws URISyntaxException,
                            MalformedURLException,
                            javax.resource.ResourceException
Throws:
URISyntaxException
MalformedURLException
javax.resource.ResourceException
Method Detail

getEntityManagerFactory

public javax.persistence.EntityManagerFactory getEntityManagerFactory()

getEntityManager

public javax.persistence.EntityManager getEntityManager(boolean transactionScoped,
                                                        Map properties)

getPersistenceUnitName

public String getPersistenceUnitName()

getPersistenceUnitRoot

public String getPersistenceUnitRoot()

getPersistenceProviderClassName

public String getPersistenceProviderClassName()

getTransactionType

public javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()

getJtaDataSource

public DataSource getJtaDataSource()

getNonJtaDataSource

public DataSource getNonJtaDataSource()

getMappingFileNames

public List<String> getMappingFileNames()

getJarFileUrls

public List<URL> getJarFileUrls()

getPersistenceUnitRootUrl

public URL getPersistenceUnitRootUrl()

getManagedClassNames

public List<String> getManagedClassNames()

excludeUnlistedClasses

public boolean excludeUnlistedClasses()

getProperties

public Properties getProperties()

getClassLoader

public ClassLoader getClassLoader()

addTransformer

public void addTransformer(javax.persistence.spi.ClassTransformer classTransformer)

getNewTempClassLoader

public ClassLoader getNewTempClassLoader()

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2009 The Apache Geronimo development community. All Rights Reserved.