net.sourceforge.hivetranse.transaction.hibernate3
Interface SessionFactoryBuilder

All Known Implementing Classes:
SessionFactoryBuilderImpl

public interface SessionFactoryBuilder

Utility interface to build Hibernate SessionFactory.

Please note that this interface will not be stable for some time, so avoid using it directly. Anyway, it should be considered to be reserved for hivetranse.hibernate internal use only.

Author:
Jean-Francois Poilpret

Method Summary
 org.hibernate.SessionFactory buildSessionFactory(org.apache.hivemind.Resource config, java.util.Properties properties, java.util.List<java.lang.String> mappingPackages, java.util.List<java.lang.Class> mappingClasses, java.util.List<java.net.URL> mappingFiles, org.hibernate.Interceptor interceptor, org.hibernate.cfg.NamingStrategy namingStrategy)
          Builds a SessionFactory from a configuration file and additional properties.
 

Method Detail

buildSessionFactory

org.hibernate.SessionFactory buildSessionFactory(org.apache.hivemind.Resource config,
                                                 java.util.Properties properties,
                                                 java.util.List<java.lang.String> mappingPackages,
                                                 java.util.List<java.lang.Class> mappingClasses,
                                                 java.util.List<java.net.URL> mappingFiles,
                                                 org.hibernate.Interceptor interceptor,
                                                 org.hibernate.cfg.NamingStrategy namingStrategy)
Builds a SessionFactory from a configuration file and additional properties.

Parameters:
config - file containing the Hibernate configuration to be used for creating the SessionFactory
properties - additional properties that will be used to further setup Hibernate configuration
mappingClasses - list of Class that will be passed to Hibernate Configuration as persistent classes.
mappingFiles - list of URL that will be passed to Hibernate Configuration as paths to Hibernate mapping XML files.
Returns:
the built SessionFactory