Class DialectFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<org.hibernate.dialect.Dialect>

    public class DialectFactoryBean
    extends Object
    implements org.springframework.beans.factory.FactoryBean<org.hibernate.dialect.Dialect>
    Factory for the Hibernate dialect. Allows dialect detection logic to be centralized and the dialect to be injected where required as a singleton from the container.
    Author:
    dward
    • Constructor Detail

      • DialectFactoryBean

        public DialectFactoryBean()
    • Method Detail

      • setDriverDialectMap

        public void setDriverDialectMap​(Map<String,​String> driverDialectMap)
      • setLocalSessionFactory

        public void setLocalSessionFactory​(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
        Sets the local session factory.
        Parameters:
        localSessionFactory - the new local session factory
      • getObject

        public org.hibernate.dialect.Dialect getObject()
                                                throws SQLException
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<org.hibernate.dialect.Dialect>
        Throws:
        SQLException
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.hibernate.dialect.Dialect>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<org.hibernate.dialect.Dialect>