Home » tapestry-src-5.0.19 » org.apache.tapestry5.hibernate » [javadoc | source]
public interface: HibernateSessionSource [javadoc | source]

All Known Implementing Classes:

Responsible for creating a Hibernate session as needed. Internally, is responsible for Hibernate Configuration , resulting in a SessionFactory .

The service's configuration is a {@linkplain org.apache.tapestry5.ioc.services.ChainBuilder chain of command} of configurator objects.
Method from org.apache.tapestry5.hibernate.HibernateSessionSource Summary:
create,   getConfiguration,   getSessionFactory
Method from org.apache.tapestry5.hibernate.HibernateSessionSource Detail:
 public Session create()
    Creates a new session using the SessionFactory created at service startup.
 public Configuration getConfiguration()
    Returns the final configuration used to create the SessionFactory . The configuration is immutable.
 public SessionFactory getSessionFactory()
    Returns the SessionFactory from which Hibernate sessions are created.