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


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
PersistenceUnitGBean()
           
PersistenceUnitGBean(String persistenceUnitName, String persistenceProviderClassName, String persistenceUnitTransactionTypeString, ResourceSource<ResourceException> jtaDataSourceWrapper, ResourceSource<ResourceException> nonJtaDataSourceWrapper, List<String> mappingFileNamesUntyped, List<String> jarFileUrlsUntyped, String persistenceUnitRoot, List<String> managedClassNames, boolean excludeUnlistedClassesValue, Properties properties, org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager, Collection<ExtendedEntityManagerRegistry> entityManagerRegistry, URL configurationBaseURL, ClassLoader classLoader)
           
 
Method Summary
 void addTransformer(ClassTransformer classTransformer)
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 boolean excludeUnlistedClasses()
           
 ClassLoader getClassLoader()
           
 EntityManager getEntityManager(boolean transactionScoped, Map properties)
           
 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()
           
 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<ResourceException> jtaDataSourceWrapper,
                            ResourceSource<ResourceException> nonJtaDataSourceWrapper,
                            List<String> mappingFileNamesUntyped,
                            List<String> jarFileUrlsUntyped,
                            String persistenceUnitRoot,
                            List<String> managedClassNames,
                            boolean excludeUnlistedClassesValue,
                            Properties properties,
                            org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager,
                            Collection<ExtendedEntityManagerRegistry> entityManagerRegistry,
                            URL configurationBaseURL,
                            ClassLoader classLoader)
                     throws URISyntaxException,
                            MalformedURLException,
                            ResourceException
Throws:
URISyntaxException
MalformedURLException
ResourceException
Method Detail

getEntityManagerFactory

public EntityManagerFactory getEntityManagerFactory()

getEntityManager

public EntityManager getEntityManager(boolean transactionScoped,
                                      Map properties)

getPersistenceUnitName

public String getPersistenceUnitName()

getPersistenceUnitRoot

public String getPersistenceUnitRoot()

getPersistenceProviderClassName

public String getPersistenceProviderClassName()

getTransactionType

public 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(ClassTransformer classTransformer)

getNewTempClassLoader

public ClassLoader getNewTempClassLoader()

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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