Package org.apache.tapestry5.hibernate
Interface HibernateSessionSource
- 
- All Known Implementing Classes:
 HibernateSessionSourceImpl
@UsesOrderedConfiguration(HibernateConfigurer.class) public interface HibernateSessionSource
Responsible for creating a Hibernate session as needed. Internally, is responsible for HibernateConfiguration, resulting in aSessionFactory. The service's configuration is a chain of command of configurator objects. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hibernate.Sessioncreate()Creates a new session using theSessionFactorycreated at service startup.org.hibernate.cfg.ConfigurationgetConfiguration()Returns the final configuration used to create theSessionFactory.org.hibernate.SessionFactorygetSessionFactory()Returns the SessionFactory from which Hibernate sessions are created. 
 - 
 
- 
- 
Method Detail
- 
create
org.hibernate.Session create()
Creates a new session using theSessionFactorycreated at service startup. 
- 
getSessionFactory
org.hibernate.SessionFactory getSessionFactory()
Returns the SessionFactory from which Hibernate sessions are created. 
- 
getConfiguration
org.hibernate.cfg.Configuration getConfiguration()
Returns the final configuration used to create theSessionFactory. The configuration is immutable. 
 - 
 
 -