com.sas.framework.expojo.hibernate
Class HibernatePersistenceProviderFactory

java.lang.Object
  extended by com.sas.framework.expojo.PersistenceProviderFactory
      extended by com.sas.framework.expojo.hibernate.HibernatePersistenceProviderFactory

public class HibernatePersistenceProviderFactory
extends PersistenceProviderFactory

Factory to supply HibernatePersistenceProvider instances as required.


Field Summary
protected  SessionFactory sessionFactory
          It is expensive to create these so only do it once.
 
Fields inherited from class com.sas.framework.expojo.PersistenceProviderFactory
testDb
 
Constructor Summary
HibernatePersistenceProviderFactory()
           
 
Method Summary
 PersistenceProvider createPersistenceProvider()
          Overridden in derived classes to provide PersistenceProvider appropriate to the persistence technology used.
 
Methods inherited from class com.sas.framework.expojo.PersistenceProviderFactory
close, isTestDb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionFactory

protected SessionFactory sessionFactory
It is expensive to create these so only do it once.

Constructor Detail

HibernatePersistenceProviderFactory

public HibernatePersistenceProviderFactory()
Method Detail

createPersistenceProvider

public PersistenceProvider createPersistenceProvider()
Overridden in derived classes to provide PersistenceProvider appropriate to the persistence technology used.

Specified by:
createPersistenceProvider in class PersistenceProviderFactory