org.unitils.orm.hibernate.util
Class HibernateSessionFactoryLoader
java.lang.Object
org.unitils.orm.hibernate.util.HibernateSessionFactoryLoader
- All Implemented Interfaces:
- OrmPersistenceUnitLoader<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration,OrmConfig>
public class HibernateSessionFactoryLoader
- extends Object
- implements OrmPersistenceUnitLoader<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration,OrmConfig>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateSessionFactoryLoader
public HibernateSessionFactoryLoader()
getConfiguredOrmPersistenceUnit
public ConfiguredOrmPersistenceUnit<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration> getConfiguredOrmPersistenceUnit(Object testObject,
OrmConfig entityManagerConfig)
- Specified by:
getConfiguredOrmPersistenceUnit
in interface OrmPersistenceUnitLoader<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration,OrmConfig>
- Parameters:
testObject
- The test object, not nullentityManagerConfig
- The persistence unit configuration, not null
- Returns:
- An instance of
ConfiguredOrmPersistenceUnit
that wraps the persistence unit and an
implementation specific configuration object
createSessionFactoryBean
protected org.springframework.orm.hibernate3.LocalSessionFactoryBean createSessionFactoryBean(Object testObject,
OrmConfig entityManagerConfig)
getConfigurationObjectClass
protected Class<? extends org.hibernate.cfg.Configuration> getConfigurationObjectClass()
getDataSource
protected DataSource getDataSource()
getDatabaseModule
protected DatabaseModule getDatabaseModule()
getHibernateModule
protected HibernateModule getHibernateModule()
Copyright © 2011. All Rights Reserved.