net.sourceforge.hivetranse.transaction.hibernate3
Class SessionFactoryBuilderImpl
java.lang.Object
net.sourceforge.hivetranse.transaction.hibernate3.SessionFactoryBuilderImpl
- All Implemented Interfaces:
- SessionFactoryBuilder
public class SessionFactoryBuilderImpl
- extends java.lang.Object
- implements SessionFactoryBuilder
Utility class to build Hibernate SessionFactory
. Can be used
as a HiveMind service but does not have to.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactoryBuilderImpl
public SessionFactoryBuilderImpl(org.apache.commons.logging.Log logger)
buildSessionFactory
public 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)
- Description copied from interface:
SessionFactoryBuilder
- Builds a
SessionFactory
from a configuration file and
additional properties.
- Specified by:
buildSessionFactory
in interface SessionFactoryBuilder
- 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 configurationmappingClasses
- 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