org.apache.geronimo.persistence
Class PersistenceUnitGBean

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

public class PersistenceUnitGBean
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
PersistenceUnitGBean()
           
PersistenceUnitGBean(String persistenceUnitName, String persistenceProviderClassName, String persistenceUnitTransactionTypeString, org.apache.geronimo.connector.outbound.ConnectionFactorySource jtaDataSourceWrapper, org.apache.geronimo.connector.outbound.ConnectionFactorySource nonJtaDataSourceWrapper, List mappingFileNamesUntyped, List jarFileUrlsUntyped, URL persistenceUnitRootUrl, List managedClassNamesUntyped, boolean excludeUnlistedClassesValue, Properties properties, org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager, 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 org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 List<URL> getJarFileUrls()
           
 DataSource getJtaDataSource()
           
 List<String> getManagedClassNames()
           
 List<String> getMappingFileNames()
           
 ClassLoader getNewTempClassLoader()
           
 DataSource getNonJtaDataSource()
           
 String getPersistenceProviderClassName()
           
 String getPersistenceUnitName()
           
 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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

PersistenceUnitGBean

public PersistenceUnitGBean()

PersistenceUnitGBean

public PersistenceUnitGBean(String persistenceUnitName,
                            String persistenceProviderClassName,
                            String persistenceUnitTransactionTypeString,
                            org.apache.geronimo.connector.outbound.ConnectionFactorySource jtaDataSourceWrapper,
                            org.apache.geronimo.connector.outbound.ConnectionFactorySource nonJtaDataSourceWrapper,
                            List mappingFileNamesUntyped,
                            List jarFileUrlsUntyped,
                            URL persistenceUnitRootUrl,
                            List managedClassNamesUntyped,
                            boolean excludeUnlistedClassesValue,
                            Properties properties,
                            org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager,
                            ClassLoader classLoader)
Method Detail

getEntityManagerFactory

public javax.persistence.EntityManagerFactory getEntityManagerFactory()

getEntityManager

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

getPersistenceUnitName

public String getPersistenceUnitName()

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 org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2006 Apache Software Foundation. All Rights Reserved.