org.apache.geronimo.persistence
Class PersistenceUnitGBean
java.lang.Object
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<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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
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<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
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
- 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-2007 Apache Software Foundation. All Rights Reserved.