org.apache.geronimo.persistence
Class PersistenceUnitGBean
java.lang.Object
org.apache.geronimo.persistence.PersistenceUnitGBean
- All Implemented Interfaces:
- GBeanLifecycle
public class PersistenceUnitGBean
- extends Object
- implements GBeanLifecycle
- Version:
- $Rev: 735768 $ $Date: 2009-01-20 02:26:42 +0800 (Tue, 20 Jan 2009) $
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
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
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-2010 The Apache Geronimo development community. All Rights Reserved.